/* Caddy Docs, the practical redesign (December 1, 2026).
   Matte black. The only light on the page is the app itself: its own tabs at the edge of a Mac's screen,
   then real captures of its workspaces laid straight on the black. The first screen is Blake's first
   paper sketch; the rest tells what the app does, a section a feature. */

:root {
  --black: #0b0b0c;
  --black-2: #131315;
  --bezel-black: #0f0f11;
  --glass: rgba(255, 255, 255, .1);
  --sky: #7fa8d4;
  --amber: #d6a84f;
  --coral: #e2775d;
  --teal: #45b3ab;
  --orchid: #c27fb6;
  --fairway: #7fbf8b;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #6e6e73;
  --line: rgba(255, 255, 255, .09);
  --nav: 52px;
  --strip: 92px;   /* the featured-on strip under the first screen: both fit one window */
  --gutter: max(22px, 6vw);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--black);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Matte: a fine, visible grain over the whole page, the screens included: light specks at a few percent, the way a
   matte black surface catches light. (Until 12/1 2 pm this layer was a neutral gray under an overlay blend: no effect.) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.52'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
picture { display: block; }
a { color: inherit; }
h1, h2, p, figure { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 10px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: #000; }

:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }

/* ------------------------------------------------------------------ the bar */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, 4vw);
  background: rgba(11, 11, 12, .62);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  backdrop-filter: saturate(160%) blur(22px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.03em;
  text-decoration: none;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #000;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.02em;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(.98); }
.btn-small { min-height: 30px; padding: 0 15px; font-size: 13px; letter-spacing: -.01em; }
.btn-small::after { content: ""; position: absolute; inset: -8px -4px; } /* a full-size target for a thumb */
/* The second way in, beside the first: the Mac App Store. */
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-link { color: rgba(245, 245, 247, .82); font-size: 13px; letter-spacing: -.01em; text-decoration: none; }
.nav-link:hover { color: #fff; }

/* ------------------------------------------------- 1. the edge (his first sheet) */

.edge {
  /* One unit is one point of the app's own tab drawing. The three tabs (88, 135 and 114 points long, 6 apart)
     fill most of the screen's height, so everything here is sized from the height. */
  --H: clamp(520px, calc(100vh - var(--strip)), 1180px);
  --u: calc(var(--H) * .84 / 349);
  --t: calc(var(--u) * 28);
  --bezel: calc(var(--u) * 13);
  --mid: calc(50% + var(--nav) / 2);
  position: relative;
  z-index: 61;          /* above the page's grain: the screen itself is clean */
  height: var(--H);
  overflow: hidden;
  isolation: isolate;
  background: #0f1020;
}
@supports (height: 100svh) {
  .edge { --H: clamp(520px, calc(100svh - var(--strip)), 1180px); }
}

/* The screen: macOS 27's dark wallpaper, magnified the way the tabs are. */
.edge .wall { position: absolute; inset: 0 0 0 var(--bezel); z-index: -2; }
.edge .wall img { width: 100%; height: 100%; object-fit: cover; object-position: 0 100%; }

/* The Mac's own black edge. */
.edge::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: var(--bezel);
  background: var(--black);
}

/* A little depth where the words sit. */
.edge::after {
  content: "";
  position: absolute;
  inset: 0 0 0 var(--bezel);
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .3) 0, rgba(0, 0, 0, 0) 7%),
    linear-gradient(90deg, rgba(7, 7, 14, 0) 20%, rgba(7, 7, 14, .56) 58%, rgba(7, 7, 14, .66) 100%);
}

/* A Caddy opens the way the app opens it: its workspace comes out of the wall, quick and decelerating (the
   curve is measured from a 60 frames a second capture of the app), and the three tabs ride its inner edge.
   The picture pulls back from the close-up to the workspace's real size. The script sets the lengths. */
.edge {
  --open-ms: 320ms;
  --open-ease: cubic-bezier(.06, .86, .12, 1);
  --k: 1;
  --rx: 0px;
  --ry: 0px;
  --by: 0px;
  --dh: 0px;
}
@supports (transition-timing-function: linear(0, 1)) {
  .edge { --open-ease: linear(0, .763 7.7%, .959 22.7%, .997 60%, 1); }
}

.drawers { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.drawer {
  position: absolute;
  left: var(--bezel);
  top: calc(var(--mid) + var(--by) - var(--dh) / 2);
  width: auto;
  max-width: none;
  height: var(--dh);
  transform: translateX(calc(-100% - var(--bezel) - 6px));
  transition: transform var(--open-ms) var(--open-ease);
}
.edge[data-open="0"] .drawer[data-i="0"],
.edge[data-open="1"] .drawer[data-i="1"],
.edge[data-open="2"] .drawer[data-i="2"] { transform: none; }

.rail {
  position: absolute;
  left: var(--bezel);
  top: var(--mid);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 6);
  transform: translateY(-50%);
  transform-origin: 0 50%;
  transition: transform var(--open-ms) var(--open-ease);
}
.edge[data-open] .rail { transform: translate(var(--rx), calc(-50% + var(--ry) + var(--by))) scale(var(--k)); }

.caddy {
  position: relative;
  display: block;
  width: var(--t);
  border-radius: 0 calc(var(--u) * 9) calc(var(--u) * 9) 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.caddy img { width: 100%; height: 100%; }
.caddy .lit, .caddy .op, .caddy .op-lit { position: absolute; inset: 0; opacity: 0; transition: opacity .16s ease; }
.caddy:hover .lit, .caddy:focus-visible .lit, .edge.pressing .caddy-2 .lit { opacity: 1; }
.caddy.is-open .op { opacity: 1; }
.caddy.is-open .lit { opacity: 0; }
.caddy.is-open:hover .op-lit, .caddy.is-open:focus-visible .op-lit { opacity: 1; }
.caddy-1 { height: calc(var(--u) * 88); }
.caddy-2 { height: calc(var(--u) * 135); }
.caddy-3 { height: calc(var(--u) * 114); }

/* The system's own arrow. It comes to the middle Caddy and clicks it. */
.pointer {
  position: absolute;
  z-index: 4;
  /* The system's arrow is a 28 by 40 point picture with its tip 5 points in. A Caddy at the app's default size
     (Medium) is 1.2 times its drawing, so one screen point here is one unit over 1.2. Its tip ends on the
     Big Assignment tab, near its outer side, below its middle. */
  --pt: calc(var(--u) / 1.2);
  left: calc(var(--bezel) + var(--u) * 22 - var(--pt) * 5);
  top: calc(var(--mid) + var(--u) * 26 - var(--pt) * 5);
  width: calc(var(--pt) * 28);
  height: calc(var(--pt) * 40);
  pointer-events: none;
  transform-origin: 18% 12%;
  animation: approach 2s cubic-bezier(.2, .62, .18, 1) .4s both;
  transition: opacity .45s ease, scale .09s ease;
}
@keyframes approach {
  from { transform: translate(calc(var(--u) * 175), calc(var(--u) * 62)); opacity: 0; }
  10% { opacity: 1; }
  to { transform: none; opacity: 1; }
}
.edge.pressing .pointer { scale: .92; }
.pointer.gone { opacity: 0 !important; animation: none; }

.edge-copy, .open-copy {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  top: var(--mid);
  transform: translateY(-50%);
  transition: opacity .28s ease, visibility 0s linear 0s;
}
.edge-copy { left: 40%; max-width: 880px; }
.edge[data-open] .edge-copy { opacity: 0; visibility: hidden; transition: opacity .14s ease, visibility 0s linear .14s; }

/* The words beside an open workspace. */
.open-copy { left: var(--cl, 62%); max-width: 520px; opacity: 0; visibility: hidden; }
.edge[data-open] .open-copy { opacity: 1; visibility: visible; transition: opacity .34s ease .16s, visibility 0s linear 0s; }
.open-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: rgba(245, 245, 247, .62); }
.open-name span, .open-line { display: none; }
.edge[data-open="0"] [data-i="0"]:not(.drawer),
.edge[data-open="1"] [data-i="1"]:not(.drawer),
.edge[data-open="2"] [data-i="2"]:not(.drawer) { display: block; }
.open-line {
  margin-top: .3em;
  font-size: clamp(28px, 3.3vw, 54px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.034em;
  text-wrap: balance;
}
.by-tap { display: none; }
@media (hover: none) and (pointer: coarse) {
  .by-click { display: none; }
  .by-tap { display: inline; }
}
.open-hint { margin-top: 1.1em; font-size: 15px; line-height: 1.35; letter-spacing: -.012em; color: rgba(245, 245, 247, .62); text-wrap: balance; }

h1 {
  font-size: clamp(34px, 5.1vw, 82px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.036em;
  text-wrap: balance;
}

/* The first screen's headline is four short sentences, one to a line, the last one saying where (his line, 12/1).
   It is as wide as its column lets it be, and on a short window no taller than the screen leaves room for:
   302px is the bar at the top, the lines around the headline and the air above and below them. */
.edge-copy { container-type: inline-size; }
.kicker span { display: inline-block; } /* on a phone the line breaks between its two sentences */
.kicker { margin-bottom: .62em; font-size: clamp(17px, 1.55vw, 24px); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; color: rgba(245, 245, 247, .66); }
#edge-title {
  --em: 11.45;                                  /* the longest sentence's width in ems; a language page sets its own */
  font-size: clamp(22px, 4.3vw, 64px);          /* for a browser without container units */
  font-size: min(var(--cap, 76px), calc(100cqi / var(--em) * var(--tight, 1)), calc((var(--H) - 302px) / 4.32));
  line-height: 1.08;
}
#edge-title span { display: block; white-space: nowrap; }
#edge-title .at { color: rgba(245, 245, 247, .56); }

.lede {
  margin-top: .85em;
  font-size: clamp(19px, 1.75vw, 27px);
  line-height: 1.24;
  letter-spacing: -.022em;
  color: rgba(245, 245, 247, .84);
  text-wrap: balance;
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: clamp(22px, 3.4vh, 40px); }

.price { margin-top: 16px; font-size: 14px; line-height: 1.4; letter-spacing: -.01em; color: rgba(245, 245, 247, .6); text-wrap: balance; }

/* ------------------------------------------------------------------ featured on */

/* A slow turn of the places Caddy has been, VVMac in the middle as it starts. Every cell is the same width, so the
   start is plain arithmetic: the second copy's VVMac cell sits on the strip's own centre. */
.featured {
  --cell: 236px;
  position: relative;
  height: var(--strip);
  border-bottom: 1px solid var(--line);
  background: var(--black);
}
/* The label sits over the strip's faded left end, so the strip's centre is the page's centre. */
.featured-label {
  position: absolute;
  z-index: 1;
  left: max(22px, 4vw);
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee {
  container-type: inline-size;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent max(150px, 15%), #000 max(250px, 24%), #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, transparent max(150px, 15%), #000 max(250px, 24%), #000 90%, transparent 100%);
}
.marquee-track {
  --from: calc(50cqw - (var(--n) + var(--at) + .5) * var(--cell));
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  transform: translateX(var(--from));
  animation: turn calc(var(--n) * 11s) linear infinite;
}
@keyframes turn {
  from { transform: translateX(var(--from)); }
  to { transform: translateX(calc(var(--from) - var(--n) * var(--cell))); }
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: var(--cell);
  height: 100%;
  color: var(--ink);
  opacity: .56;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s ease;
}
.logo:has(.mark-word) { opacity: .82; }
a.logo:hover, a.logo:focus-visible { opacity: 1; }
.logo .mark { width: auto; height: 22px; }
.logo .mark-word { height: 27px; }

/* ------------------------------------------------------------------ the story */

/* After his "Go" (12/1): the page is the Mac. Every feature is a full-width slice of a Mac's desktop (macOS 27's dark
   wallpaper, the workspace hanging from the page's real edge), and the black between two slices is the bezel: a rail
   that carries the words. No boxes, no glows. Gold appears twice: the thrown Caddy's screen and the buying. */

h2 {
  font-size: clamp(30px, 4vw, 62px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.033em;
  text-wrap: balance;
}
h3 { margin: 0; }

.sub {
  margin-top: .6em;
  font-size: clamp(19px, 1.75vw, 27px);
  line-height: 1.25;
  letter-spacing: -.022em;
  color: var(--ink-2);
  text-wrap: balance;
}

/* A section's name, marked with a little Caddy tab. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1em;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .005em;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 6px;
  height: 18px;
  border-radius: 0 3.5px 3.5px 0;
  background: var(--tab, var(--sky));
}
.note { margin-top: .9em; font-size: 15px; line-height: 1.4; letter-spacing: -.012em; color: var(--ink-3); text-wrap: balance; }

/* The black between two screens carries the words. */
.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px clamp(28px, 5vw, 96px);
  padding: clamp(46px, 8.4vh, 96px) var(--gutter) clamp(26px, 4.6vh, 46px);
  background: var(--bezel-black);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.intro h2 { font-size: clamp(30px, 3.6vw, 56px); }
.intro .sub { margin-top: 0; font-size: clamp(18px, 1.5vw, 23px); }
.intro.minor { padding-top: clamp(30px, 5vh, 52px); padding-bottom: clamp(20px, 3.4vh, 32px); border-top: 0; }
.intro.minor h3 { font-size: clamp(24px, 2.3vw, 34px); font-weight: 600; letter-spacing: -.03em; }

/* A band: a slice of a Mac's desktop, 1000 points tall. It is as tall as the window allows, and never so tall that
   the workspace would not fit across a narrow one (--fit: the band's height over the width the workspace needs).
   The clip is 2000 points of that desktop, held against the wall it hangs from; the wallpaper alone lies under it
   and runs on past its far end, which fades into it. */
.feature { --bh: min(calc(100vh - 104px), calc(100vw * var(--fit, .7)), 1180px); }
@supports (height: 100svh) {
  .feature { --bh: min(calc(100svh - 104px), calc(100vw * var(--fit, .7)), 1180px); }
}
.band {
  position: relative;
  z-index: 61;          /* above the page's grain: a screen is clean */
  height: var(--bh);
  overflow: hidden;
  isolation: isolate;
  background: #0a0b18;
  line-height: 0;
}
.film { display: block; background: none; }
.band .plate, .band .film { position: absolute; top: 0; width: auto; max-width: none; height: 100%; }
.band .plate { aspect-ratio: 3.2; }
.band .film { aspect-ratio: 2; }
.wall-right .band .plate, .wall-right .band .film { right: 0; }
.wall-left .band .plate, .wall-left .band .film { left: 0; }
.wall-right .band .film { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%); mask-image: linear-gradient(90deg, transparent 0, #000 10%); }
.wall-left .band .film { -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 10%); mask-image: linear-gradient(270deg, transparent 0, #000 10%); }

/* Where the workspace is narrow, the words sit on the wallpaper beside it, as they do on the first screen
   (--reach: how far the workspace reaches from its wall, as a part of the band's height). */
@media (min-width: 861px) {
  .on-wall { position: relative; }
  .on-wall::before {
    content: "";
    display: block;
    height: 26px;
    background: var(--bezel-black);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .on-wall > .intro {
    position: absolute;
    z-index: 62;
    top: calc(28px + var(--bh) / 2);
    left: calc(var(--bh) * var(--reach) + clamp(40px, 5.4vw, 104px));
    right: var(--gutter);
    display: block;
    max-width: 640px;
    padding: 0;
    border: 0;
    background: none;
    transform: translateY(-50%);
  }
  .on-wall > .intro h2 { font-size: clamp(30px, 3.5vw, 58px); }
  .on-wall > .intro .intro-side { margin-top: 1.05em; }
  .on-wall > .intro .sub { font-size: clamp(18px, 1.6vw, 25px); color: rgba(245, 245, 247, .8); }
  .on-wall .band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(7, 7, 14, 0) calc(var(--bh) * var(--reach) - 2%), rgba(7, 7, 14, .5) calc(var(--bh) * var(--reach) + 16%), rgba(7, 7, 14, .6) 100%);
    transition: opacity .5s ease;
  }
}

/* The same, only where the window is wide enough for a workspace that reaches far across it. */
@media (min-width: 1180px) {
  .on-wall-lg { position: relative; }
  .on-wall-lg::before {
    content: "";
    display: block;
    height: 26px;
    background: var(--bezel-black);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .on-wall-lg > .intro {
    position: absolute;
    z-index: 62;
    top: calc(28px + var(--bh) / 2);
    left: calc(var(--bh) * var(--reach) + clamp(40px, 5.4vw, 104px));
    right: var(--gutter);
    display: block;
    max-width: 640px;
    padding: 0;
    border: 0;
    background: none;
    transform: translateY(-50%);
  }
  .on-wall-lg > .intro h2 { font-size: clamp(30px, 3.5vw, 58px); }
  .on-wall-lg > .intro .intro-side { margin-top: 1.05em; }
  .on-wall-lg > .intro .sub { font-size: clamp(18px, 1.6vw, 25px); color: rgba(245, 245, 247, .8); }
  .on-wall-lg .band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(7, 7, 14, 0) calc(var(--bh) * var(--reach) - 2%), rgba(7, 7, 14, .5) calc(var(--bh) * var(--reach) + 16%), rgba(7, 7, 14, .6) 100%);
    transition: opacity .5s ease;
  }
}

/* With the words on the wall, the band is never so tall that the workspace leaves them no room. */
@media (min-width: 861px) {
  .on-wall { --bh: min(calc(100vh - 104px), calc((100vw - 420px) / var(--reach)), 1180px); }
  @supports (height: 100svh) { .on-wall { --bh: min(calc(100svh - 104px), calc((100vw - 420px) / var(--reach)), 1180px); } }
}
@media (min-width: 1180px) {
  .on-wall-lg { --bh: min(calc(100vh - 104px), calc((100vw - 500px) / var(--reach)), 1180px); }
  @supports (height: 100svh) { .on-wall-lg { --bh: min(calc(100svh - 104px), calc((100vw - 500px) / var(--reach)), 1180px); } }
}

/* The one feature that needs a whole screen: a Caddy thrown from edge to edge, on a Mac's own display. */
.screen-band {
  display: grid;
  place-items: center;
  padding: clamp(22px, 4.4vh, 48px) clamp(14px, 2vw, 34px) clamp(34px, 6.4vh, 72px);
}
.mac-screen {
  position: relative;
  z-index: 61;
  width: min(100%, calc(min(80vh, 980px) * 3456 / 2234));
  overflow: hidden;
  border-radius: clamp(9px, 1.1vw, 18px);
  background: #a8957c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 0 0 clamp(6px, .75vw, 11px) #050506, 0 0 0 calc(clamp(6px, .75vw, 11px) + 1px) rgba(255, 255, 255, .1);
  line-height: 0;
}
.mac-screen .film { width: 100%; height: auto; }

/* Real buttons: a row of choices, the chosen one filled. */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 19px; background: var(--glass); }
.seg button {
  position: relative;
  min-height: 32px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.seg button:hover { background: var(--glass); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--black); }

/* ------------------------------------------------------------------ pets */

/* The stage: four clips, one at a time, chosen by the buttons in the rail; each moves on to the next when it ends. */
.pets .intro-side .sub { margin-bottom: 18px; }
.stage {
  position: relative;
  z-index: 61;
  width: 100%;
  aspect-ratio: 2.4;
  max-height: calc(100vh - 104px);
  overflow: hidden;
  background: #11121c;
  line-height: 0;
}
.stage-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; opacity: 0; transition: opacity .4s ease; }
.stage-film.on { opacity: 1; }
/* The clip's own progress, along the stage's foot. */
.stage::after { content: ""; position: absolute; left: 0; bottom: 0; z-index: 2; width: calc(var(--played, 0) * 100%); height: 2px; background: rgba(255, 255, 255, .5); }

/* The three sceneries, each a bar from one side of the window to the other, on its own night. */
.bar {
  position: relative;
  z-index: 61;
  height: clamp(118px, 20.4vw, 310px);
  margin: 0;
  overflow: hidden;
  background: var(--ground);
  border-top: 1px solid var(--line);
  line-height: 0;
}
.bars .bar:first-child { border-top: 0; }
.bar .film {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  max-width: none;
  height: 100%;
  aspect-ratio: 3444 / 640;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.bar figcaption {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  top: clamp(12px, 1.6vw, 22px);
  color: rgba(245, 245, 247, .72);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .005em;
}

/* ------------------------------------------------------------------ try Caddy */

/* A little Mac desktop to play with (his 12/1 word: "a simulated desktop workspace that has a couple Caddies filled
   with stuff, a couple file folders on the workspace, and a Caddy dog on a caddy tab"). Every piece is real: the tabs
   are the app's own drawing, the workspaces and the dog its own captures, the folder the system's own icon. A Caddy
   opens and closes on a click, the way it does on the first screen, and can be moved along its wall. */
.desk {
  --open-ms: 320ms;
  --open-ease: cubic-bezier(.06, .86, .12, 1);
  -webkit-user-select: none;
  user-select: none;
}
@supports (transition-timing-function: linear(0, 1)) {
  .desk { --open-ease: linear(0, .763 7.7%, .959 22.7%, .997 60%, 1); }
}
.desk-wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menubar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
  height: clamp(20px, calc(var(--bh) * 33 / 1030), 30px);
  padding: 0 clamp(12px, 1.5vw, 20px);
  background: rgba(18, 18, 30, .34);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  color: rgba(255, 255, 255, .94);
  font-size: clamp(11px, calc(var(--bh) * .0152), 13.5px);
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.menubar b { font-weight: 700; }
.menubar time { margin-left: auto; font-variant-numeric: tabular-nums; }
/* The desk is a Mac's screen from its very top, 1030 of the app's points tall.
   Everything on the desktop lies on one plane: on a narrow window it pulls back so an open workspace fits across. */
.plane { position: absolute; inset: 0; transform: scale(var(--z, 1)); transform-origin: 0 50%; transition: transform var(--open-ms) var(--open-ease); }
.desk.settling .plane, .desk.settling .d-drawer, .desk.settling .d-caddy { transition: none; }
.d-drawers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }      /* the band itself cuts what is off the screen */
.d-drawer {
  position: absolute;
  left: 0;
  top: calc(var(--bh) * 43 / 1030);
  width: auto;
  max-width: none;
  height: calc(var(--bh) * 970 / 1030);
  transform: translateX(-103%);
  transition: transform var(--open-ms) var(--open-ease);
}
.desk[data-open="0"] .d-drawer[data-i="0"],
.desk[data-open="1"] .d-drawer[data-i="1"],
.desk[data-open="2"] .d-drawer[data-i="2"] { transform: none; }
/* A Caddy: its place along the wall (--y) and its length (--len) are in the app's own points. With a workspace open
   (--ow, its width) the three ride its inner edge. */
.d-caddy {
  position: absolute;
  z-index: 3;
  left: 0;
  top: calc(var(--bh) * var(--y) / 1030);
  width: calc(var(--bh) * 33.6 / 1030);
  height: calc(var(--bh) * var(--len) / 1030);
  transform: translateX(calc(var(--bh) * var(--ow, 0) / 1030));
  transition: transform var(--open-ms) var(--open-ease);
}
.d-caddy.dragging { z-index: 4; }
.d-tab {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 0 30% 30% 0 / 0 9% 9% 0;
  background: none;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.d-tab::after { content: ""; position: absolute; inset: -3px -16px -3px 0; }      /* a wider place to click or tap */
@media (pointer: coarse) { .d-tab::after { inset: -3px -30px -3px 0; } }
.d-tab img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.d-tab .lit, .d-tab .op, .d-tab .op-lit { opacity: 0; transition: opacity .16s ease; }
.d-tab:hover .lit, .d-tab:focus-visible .lit, .d-caddy.over .lit { opacity: 1; }
.d-caddy.is-open .op { opacity: 1; }
.d-caddy.is-open .lit { opacity: 0; }
.d-caddy.is-open .d-tab:hover .op-lit, .d-caddy.is-open .d-tab:focus-visible .op-lit { opacity: 1; }
/* The dog sits on top of her Caddy and rides it. Eight stills of her, side by side in one picture. */
.d-dog {
  position: absolute;
  left: 0;
  bottom: calc(100% - var(--bh) * 1.5 / 1030);
  width: calc(var(--bh) * 41.5 / 1030);
  aspect-ratio: 83 / 104;
  padding: 0;
  border: 0;
  background: url("/assets/v8-2026-12-01/try/dog.webp?v=9012573a70") 0 0 / 800% 100% no-repeat;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.d-dog::after { content: ""; position: absolute; inset: -8px -12px 0 0; }
/* A folder on the desktop, as the Finder shows one. */
.d-folder {
  position: absolute;
  z-index: 1;
  left: calc(var(--fx) * 1%);
  top: calc(var(--fy) * 1%);
  display: grid;
  justify-items: center;
  gap: clamp(2px, calc(var(--bh) * .005), 5px);
  width: calc(var(--bh) * .13);
  padding: 4px 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: clamp(11px, calc(var(--bh) * .0148), 13px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.005em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 0 1px rgba(0, 0, 0, .6);
  transform: translate(var(--dx, 0px), var(--dy, 0px));
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.d-folder img { width: calc(var(--bh) * .07); height: auto; pointer-events: none; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .35)); }
.d-folder span { padding: 1px 7px 2px; border-radius: 5px; }
.d-folder.dragging { z-index: 6; cursor: grabbing; }
.d-folder.dragging span, .d-folder:focus-visible span { background: #2767d8; text-shadow: none; }
.d-folder:focus-visible { outline: none; }
.try-link { margin-top: 14px; font-size: 15px; letter-spacing: -.012em; }
.try-link a { color: rgba(245, 245, 247, .86); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .34); padding-bottom: 1px; }
.try-link a::after { content: " \2193"; }
.try-link a:hover { color: #fff; border-bottom-color: #fff; }

/* ------------------------------------------------------------------ the rest, said plainly */

.also { padding: clamp(74px, 13vh, 160px) var(--gutter) clamp(54px, 9vh, 110px); border-top: 1px solid var(--line); }
.also h2 { color: var(--ink); }
.also-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
  margin: clamp(34px, 6vh, 70px) 0 0;
  padding: 0;
  list-style: none;
}
.also-list li { position: relative; padding: 26px 0 30px 20px; border-top: 1px solid var(--line); }
.also-list li::before { content: ""; position: absolute; left: 0; top: 29px; width: 6px; height: 19px; border-radius: 0 3.5px 3.5px 0; background: var(--tab, var(--sky)); }
.also-list li:nth-child(2) { --tab: var(--amber); }
.also-list li:nth-child(3) { --tab: var(--coral); }
.also-list li:nth-child(4) { --tab: var(--teal); }
.also-list li:nth-child(5) { --tab: var(--orchid); }
.also-list li:nth-child(6) { --tab: var(--fairway); }
.also-list h3 { font-size: 21px; font-weight: 600; letter-spacing: -.022em; }
.also-list p { margin-top: 8px; max-width: 34ch; font-size: 17px; line-height: 1.4; color: var(--ink-2); }

/* ------------------------------------------------------------------ buying */

/* The close is the buying: macOS 27's gold and blue wallpaper, a card of smoked black glass with the price on it, his
   own falling confetti behind it, and one burst of little Caddy tabs when the section is reached. */
.buy {
  position: relative;
  z-index: 61;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: min(100vh, 980px);
  padding: clamp(70px, 12vh, 140px) 22px;
  overflow: hidden;
  background: #b7a48d;
  border-top: 1px solid var(--line);
}
.buy-wall { position: absolute; inset: 0; z-index: -1; }
.buy-wall img { width: 100%; height: 100%; object-fit: cover; }
/* His own falling confetti, the 22 pieces of the October page with their colours and timings, a little larger here. */
.confetti-sky, .burst { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.confetti-sky i {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  background: var(--c); border-radius: 1px; opacity: var(--o); rotate: var(--r); scale: 1.9;
  animation: confetti-fall var(--d) linear infinite; animation-delay: var(--dl);
}
@keyframes confetti-fall { from { top: -8%; rotate: var(--r); } to { top: 108%; rotate: calc(var(--r) + 480deg); } }
/* The burst's pieces are little Caddy tabs: round on one side, flat on the wall side. */
.burst i { position: absolute; left: 0; top: 0; border-radius: 0 42% 42% 0 / 0 22% 22% 0; opacity: 0; will-change: transform, opacity; }
.buy-card {
  position: relative;
  z-index: 1;
  width: min(100%, 780px);
  padding: clamp(34px, 5vw, 66px) clamp(22px, 5vw, 66px);
  border-radius: clamp(24px, 3vw, 42px);
  background: rgba(16, 16, 20, .66);
  -webkit-backdrop-filter: saturate(150%) blur(34px);
  backdrop-filter: saturate(150%) blur(34px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 50px 120px -46px rgba(20, 12, 4, .7);
  color: var(--ink);
  text-align: center;
}
.buy-card h2 { font-size: clamp(34px, 5vw, 68px); letter-spacing: -.038em; }
.buy-price { margin-top: .42em; font-size: clamp(46px, 6.2vw, 88px); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
/* the website sale (12/3): a red line through the old price, the new one beside it */
.was { color: rgba(245, 245, 247, .6); font-weight: 500; text-decoration: line-through; text-decoration-color: #ff3b30; text-decoration-thickness: .09em; }
.sale-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 1em; font-size: clamp(24px, 2.3vw, 36px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.sale-price b, .buy-sale { padding: .34em .78em; border-radius: 999px; background: #d91f17; color: #fff; font-weight: 700; line-height: 1.15; letter-spacing: .01em; }
.sale-price b { font-size: 16px; }
.sale-price .was { font-size: .86em; }
.sale-price + .actions { margin-top: 18px; }
.buy-sale { width: fit-content; margin: clamp(20px, 3vh, 34px) auto 0; font-size: 20px; }
.buy-sale + .buy-price { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .28em; margin-top: .22em; }
.buy-price .was { font-size: .68em; }
.buy-terms { margin-top: 10px; color: rgba(245, 245, 247, .72); font-size: 19px; letter-spacing: -.02em; }
.buy .actions { justify-content: center; }
.buy-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: clamp(26px, 4vh, 44px) 0 0;
  padding: clamp(20px, 3vh, 30px) 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(245, 245, 247, .74);
  font-size: 15px;
  line-height: 1.4;
  list-style: none;
  text-wrap: balance;
}

/* ------------------------------------------------------------------ the close */

.link { color: var(--ink); font-size: 17px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.link::after { content: " \203A"; }
.link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

footer { padding: 34px var(--gutter) 46px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; letter-spacing: -.005em; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 28px; }
.footer-links, .langs { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
.langs [aria-current] { color: var(--ink-2); }
.footer-five { display: block; width: 46px; height: auto; margin: 34px auto 0; }

/* Words come up as they are reached, where the browser can time that to the scroll itself. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
    @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
    @media (min-width: 861px) { .on-wall > .intro .reveal { animation: none; } }
    @media (min-width: 1180px) { .on-wall-lg > .intro .reveal { animation: none; } }
  }
}

.still *, .still *::before, .still *::after { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pointer { animation: none; }
  .btn, .caddy .lit, .caddy .op, .caddy .op-lit, .drawer, .rail, .edge-copy, .open-copy, .stage-film, .plane, .d-drawer, .d-caddy { transition: none !important; }
  .marquee-track, .confetti-sky i { animation: none; }
}

/* ------------------------------------------------------------------ buy prompts (12/4, his "Do it all") */

/* The bar's Buy button carries the sale price and the page's red SALE badge, made small. While the first screen's own
   Buy button is on screen it steps aside (site.js adds .tucked), and it comes back with a short fade once that button
   has scrolled away. Without the script it simply shows; under Reduce Motion it comes and goes without the fade. */
.nav-buy { gap: 7px; padding-left: 6px; transition: background-color .2s ease, transform .2s ease, opacity .22s ease, translate .22s ease, visibility 0s linear 0s; }
.nav-buy.tucked { opacity: 0; translate: 0 -6px; visibility: hidden; pointer-events: none; transition: background-color .2s ease, transform .2s ease, opacity .18s ease, translate .18s ease, visibility 0s linear .18s; }
.nav-buy.instant { transition: none; }
.nav-sale {
  padding: .32em .72em;
  border-radius: 999px;
  background: #d91f17;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .03em;
}

/* The sale's clock (12/4: the sale ends at midnight Eastern), with the full price that follows it, right beside the Buy
   button, so the deadline and the price read as one (his words at 8:50 pm: "You put the sale way over away from the
   actual sale figure."). It shows only once site.js has the time left, and it leaves at zero. */
.nav-deal { display: flex; align-items: center; gap: 12px; }
.nav.has-clock .nav-actions { gap: 34px; }      /* the App Store link keeps clear of the deal */
.nav-clock { margin: 0; color: var(--ink-2); font-size: 13px; font-weight: 400; letter-spacing: -.01em; white-space: nowrap; }
.nav-clock[hidden] { display: none; }
.nc-time { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* A slim buying line between two sections: the name, the price, one button. It flows like a sentence; the dots are
   held to their neighbours by no-break spaces, so a long language wraps inside its price words and the last dot always
   stays beside the button. */
.buy-strip {
  padding: 13px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--black);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -.012em;
  text-align: center;
}
.buy-strip p { text-wrap: balance; }
.buy-strip b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.buy-strip .btn { margin: 2px 0 2px .15em; }

/* The first screen on a phone (12/4 about 8 pm, "WAY TOO CLUTTERED HERE (mobile)"): a short terms line in place of the
   longer one, shown below. And the closing card's small print is one line now ("Delete this text also."). */
.price-phone { display: none; }
.buy-facts { grid-template-columns: minmax(0, 1fr); }

/* ------------------------------------------------------------------ narrow screens */

@media (max-width: 860px) {
  .edge { --u: calc(var(--H) * .6 / 349); }
  .edge-copy { left: calc(var(--bezel) + var(--t) + var(--u) * 36); right: 20px; }
  h1 { font-size: clamp(29px, 8.2vw, 46px); }
  #edge-title { --cap: 46px; --tight: .96; }   /* small type is set wider by the system font */

  .nav-link { display: none; }
  .buy-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .buy { padding: 64px 14px; }

  /* A phone's first screen is the still picture: three Caddies and the words. Nothing opens, nothing clicks. */
  .pointer { display: none; }

  :root { --strip: 88px; }
  .featured { --cell: 196px; padding-top: 26px; }
  .featured-label { left: 0; right: 0; top: 11px; transform: none; text-align: center; font-size: 11px; }
  .marquee { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
  .logo { font-size: 17px; }
  .logo .mark { height: 19px; }
  .logo .mark-word { height: 23px; }

  /* An open workspace takes the screen's width; its words sit under it. */
  .open-copy { left: 22px; right: 22px; top: auto; bottom: 22px; max-width: none; transform: none; }
  .open-line { font-size: clamp(26px, 7.2vw, 38px); }
  .open-hint { margin-top: .7em; }
  .open-copy .actions { margin-top: 16px; }

  /* The words above, the screen under them, the workspace filling the window's width. */
  .intro { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 54px 22px 26px; }
  .intro h2 { font-size: clamp(30px, 8vw, 44px); }
  .intro .sub { font-size: 19px; }
  .intro.minor { padding: 34px 22px 20px; }
  .screen-band { padding: 18px 12px 30px; }

  .stage { max-height: none; }
  .bar figcaption { left: 22px; top: 10px; font-size: 13px; }

  .also { padding: 70px 22px 10px; }
  .also-list { grid-template-columns: minmax(0, 1fr); }

  .footer-meta { flex-direction: column; align-items: center; text-align: center; }
  .footer-links, .langs { justify-content: center; }
}

/* buy prompts (12/4), narrow screens: the first screen keeps one short terms line and its button says only Buy Caddy
   (the price stays in the markup for readers and checks; the sale row above carries it), and the clock sits right under
   the bar's Buy button with just the time and the full price; while the button waits at the top of the page, the clock
   keeps its place. */
@media (max-width: 860px) {
  .edge-copy .price:not(.price-phone) { display: none; }
  .edge-copy .price-phone { display: block; }
  .edge-copy .btn-price { display: none; }
  .buy-strip { padding: 12px 18px; font-size: 14px; }
  .wordmark { flex: none; }
  .nav-deal { flex-direction: column-reverse; align-items: flex-end; gap: 3px; }
  .nav.has-clock .nav-buy { min-height: 26px; }
  .nav-clock { font-size: 10.5px; line-height: 1.15; }
  .nc-words { display: none; }
  /* while the clock runs, it says the sale on a phone: the button's badge steps aside so the button stays short */
  .nav.has-clock .nav-sale { display: none; }
  .nav.has-clock .nav-buy { padding-left: 15px; }
}
/* The bar's button on a small phone: a little tighter, and below 360 points wide the badge steps aside for the price. */
@media (max-width: 400px) {
  .nav-buy { gap: 5px; padding: 0 12px 0 5px; font-size: 12.5px; }
  .nav-sale { font-size: 9px; padding: .34em .62em; }
  .nav.has-clock .nav-buy { padding-left: 12px; }
}
@media (max-width: 360px) { .nav-clock { font-size: 10px; } }
@media (max-width: 359px) {
  .nav-sale { display: none; }
  .nav-buy { padding-left: 12px; }
}
