/* Direction 2, one screen: the chosen homepage (topic 149 msgs 5958-5959, 2 Nov 2026).
   One idea: the whole site is one screen, and it fits every screen. Top to bottom it reads in the approved order:
   what it is, what it does, the film, why it is different, the price, the button. Nothing to scroll for; Help,
   Privacy and the rest are one row of links at the foot.

   The look is a poster on the website's paper: a centred headline, one flat black display holding the film, and a
   plate under it in three cells, like the label under a picture. The display is a screen and nothing else (no
   laptop, no stand), so the film is the only object on the page.

   The switch: one plain line of names under the display, one name per use, in the order Antony's customers reach
   for Sleekit. The name showing is in ink with a short line under it; the line fills while that film plays, then the
   next film takes over. It holds no boxes, icons or colour, so the page keeps its one dark object and its one
   button. It sits under the film, not above it, so the top of the page stays the headline and the film; it belongs
   to the display (16 from it) more than to the plate (24 from it).

   Type: Inter, served from the site. A single-screen layout has to fit exactly, and the Mac's own font is a different
   face on Windows and Android, with different widths. Inter measures the same everywhere, so the screen that fits
   on a Mac fits on every phone. Its display cut (optical size) takes over at headline sizes.
   Colour: the website's paper, ink, secondary and line; the display's bezel is the ink. */

@font-face { font-family: "Inter"; src: url("../shared/fonts/inter-subset.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* colour, named by job */
  --paper: #fcfcfa;           /* the page */
  --surface: #f0f0ec;         /* the placeholder's frame inside the display */
  --ink: #191919;             /* headline, first line of each cell, the button, the bezel, the switch's chosen name */
  --ink-2: #4a4a47;           /* the lead, second lines, links, the other names in the switch */
  --line: #deded9;            /* the plate's rules */
  --track: #8f8f8a;           /* the line under the chosen name before it fills: 3.2 to 1 on the paper, so the chosen
                                 name is marked from the first frame; the ink fill on it is 5.4 to 1 */
  --screen-wait: #222222;     /* an empty screen, before a film is ready */
  --button-hover: #2e2e2d;    /* ink lifted by 8% of white */
  --button-press: #434341;    /* 16% */
  --on-ink: #ffffff;

  /* type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-head: clamp(28px, 3.3vw, 48px);
  --t-lead: clamp(15px, 1.25vw, 18px);
  --t-cell: clamp(14px, 1.12vw, 16px);
  --t-tab: 15px;              /* the names in the switch, the same as Help in the bar */
  --t-button: 15px;
  --t-button-small: 12px;
  --t-meta: 13px;
  --t-lockup: 18px;
  --cap: 0.7275;              /* Inter's capitals as a share of its size (1490 of 2048 units): a trimmed line's height */

  /* space, named by job */
  --tight: 4px;               /* the foot links' padding */
  --gap: 8px;                 /* the logo mark to its name; the button's two lines; a name in the switch to its line */
  --inset: 12px;              /* padding inside small controls */
  --stack: 16px;              /* display to the switch; display to the plate when there is no switch */
  --title: 20px;              /* headline to lead */
  --group: 24px;              /* bar to headline; the switch to the plate; plate to the link row; between cells */
  --section: 32px;            /* lead to display; between the names in the switch */
  --page: 32px;               /* side margin */

  /* sizes */
  --bar-h: 64px;
  --mark-size: 28px;
  --bezel: 10px;
  --screen-r: 4px;
  --button-h: 56px;           /* two lines: the action, and the Macs it runs on */
  --plate-h: var(--button-h);
  --line-w: 2px;              /* the line under the chosen name */
  --switch-h: calc(var(--t-tab) * var(--cap) + var(--gap) + var(--line-w));   /* a name, its gap and its line */
  --switch-gap: var(--section);
  --film-ratio: 1.6;
  --fade: 240ms;              /* one film into the next */
  --ease: cubic-bezier(.25, .46, .45, .94);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11" 0; }
a { color: inherit; }
p, h1, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: #d7d7d1; }

.lockup span, .bar-nav a, .headline, .lead, .cell-text, .button > span, .foot-nav a, .preview-note, .media-label, .tab-name {
  text-box: trim-both cap alphabetic;
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }  /* read out, not shown */
.draft { text-decoration: underline dashed 1px; text-underline-offset: .28em; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); }
.skip { position: absolute; left: var(--page); top: var(--gap); z-index: 10; padding: var(--inset) var(--stack); background: var(--ink); color: var(--on-ink); border-radius: 8px; font-weight: 600; text-decoration: none; transform: translateY(-160%); }
.skip:focus { transform: none; }

/* The sheet is exactly one screen tall. Its middle row, the room, takes what the words leave, and the display is
   sized from the room so the film, the switch, the plate and every word above and below always fit. It is never
   shorter than 700: about the shortest a Mac window gets (a 13-inch MacBook Air with the Dock and a bookmarks bar
   showing). A shorter window scrolls a little rather than squeeze the plate. */
.sheet { height: 100svh; min-height: 700px; display: flex; flex-direction: column; padding: 0 var(--page); }
.bar { flex: none; height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; }
.lockup { display: inline-flex; align-items: center; gap: var(--gap); text-decoration: none; font: 650 var(--t-lockup)/1 var(--font); letter-spacing: -.02em; }
.mark { width: var(--mark-size); height: var(--mark-size); fill: currentColor; display: block; }
.bar-nav a { font: 500 15px/1 var(--font); color: var(--ink-2); text-decoration: none; display: inline-block; padding: var(--inset) 0; }
.bar-nav a:hover { color: var(--ink); }

.main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.title { flex: none; text-align: center; padding-top: var(--group); }
.headline { font: 650 var(--t-head)/1.06 var(--font); letter-spacing: -.032em; text-wrap: balance; }
.lead { margin-top: var(--title); font: 400 var(--t-lead)/1.4 var(--font); letter-spacing: -.011em; color: var(--ink-2); text-wrap: balance; }

/* Everything under the display (the switch, when there is one, and the plate) has a fixed height, so the display
   takes the rest of the room's height at the film's shape, or the room's width if that runs out first. */
.room { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; padding-top: var(--section); }
.unit { --under: calc(var(--stack) + var(--plate-h)); container: unit / inline-size;  /* the plate fits itself to it */
        width: min(100cqw, (100cqh - var(--under) - 2 * var(--bezel)) * var(--film-ratio) + 2 * var(--bezel)); }
.unit:has(.switch) { --under: calc(var(--stack) + var(--switch-h) + var(--group) + var(--plate-h)); }

/* The display: the films behind a black bezel, on the paper with one soft shadow. Each film is a panel stacked in
   the same screen, so changing film never moves anything: the screen keeps its shape whichever film is in it. */
.display { position: relative; padding: var(--bezel); background: var(--ink); border-radius: calc(var(--bezel) + var(--screen-r)); box-shadow: 0 1px 2px rgba(25, 25, 25, .14), 0 22px 44px -22px rgba(25, 25, 25, .45); }
.screen { position: relative; isolation: isolate; aspect-ratio: 16 / 10; border-radius: var(--screen-r); overflow: hidden; background: var(--screen-wait); }
.panel { position: absolute; inset: 0; }
.panel.is-entering { z-index: 1; animation: film-in var(--fade) var(--ease) both; }
@keyframes film-in { from { opacity: 0; } }
.panel:focus-visible { outline: none; }  /* the ring goes round the whole display instead, on the paper where it shows */
.display:has(.panel:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.media { display: block; width: 100%; height: 100%; object-fit: cover; }
.media--wait { display: grid; place-items: center; }
.media-label { font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: #b4b4ae; }
.vctl { position: absolute; z-index: 2; right: calc(var(--bezel) + var(--inset)); bottom: calc(var(--bezel) + var(--inset)); width: 32px; height: 32px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center; background: rgba(25, 25, 25, .56); color: #f5f5f3; cursor: pointer; opacity: 0; transition: opacity 160ms var(--ease); }
.display:hover .vctl, .vctl:focus-visible, .display[data-playing="false"] .vctl { opacity: 1; }
.vctl:focus-visible { outline-color: #f5f5f3; }
.vctl svg { width: 14px; height: 14px; grid-area: 1 / 1; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.vctl-pause { fill: none; }
.display[data-playing="true"] .vctl-play, .display:not([data-playing="true"]) .vctl-pause { display: none; }
.display:not(:has(video)) .vctl { display: none; }
@media (hover: none) { .vctl { opacity: 1; } }  /* no hover on a phone, so the pause control always shows */

/* The switch. Every name keeps one weight and one place in every state, and the line under each is always laid out
   (shown only under the chosen name), so choosing a film never shifts a letter. The line is a track that the ink
   fills while the film plays on its own; once the visitor picks a film it stays full. */
.switch { width: max-content; margin: var(--stack) auto 0; display: flex; gap: var(--switch-gap); }  /* as wide as its names, centred */
.tab {
  position: relative; display: inline-grid; grid-template-rows: auto var(--line-w); row-gap: var(--gap);
  margin: 0; padding: 0; border: 0; background: none; -webkit-appearance: none; appearance: none;
  font: 500 var(--t-tab)/1 var(--font); letter-spacing: -.006em; color: var(--ink-2); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tab::before { content: ""; position: absolute; inset: -12px calc(var(--switch-gap) / -2); }  /* a 45 px target; neighbours meet mid-gap */
.tab:hover, .tab[aria-selected="true"] { color: var(--ink); }
.tab:focus-visible { outline-offset: 6px; }
.tab-name { white-space: nowrap; }
.tab-line { position: relative; overflow: hidden; border-radius: 1px; background: var(--track); visibility: hidden; }
.tab[aria-selected="true"] .tab-line { visibility: visible; }
.tab-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: left center; transform: scaleX(var(--p, 0)); }
.switch[data-mode="chosen"] .tab-fill { transform: none; }

/* The plate: why it is different, what it costs, and the one button, in three cells under the display. The two word
   cells share the room equally, unless the longer one needs more to keep each line on one line. */
.plate { height: var(--plate-h); margin-top: var(--stack); display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(max-content, 1fr) auto; align-items: stretch; }
.switch + .plate { margin-top: var(--group); }
.cell { padding: 0 var(--group); border-left: 1px solid var(--line); display: flex; align-items: center; }
.cell-text { margin: 0; font: 400 var(--t-cell)/1.4 var(--font); letter-spacing: -.011em; }
.cell:first-child { padding-left: 0; border-left: 0; }
.cell--act { padding-right: 0; position: relative; display: flex; justify-content: flex-end; align-self: stretch; align-items: center; }
.cell-line { display: block; font-weight: 600; }
.cell-line--quiet { font-weight: 400; color: var(--ink-2); }

.button {
  display: inline-grid; justify-items: center; align-content: center; row-gap: var(--gap); height: var(--button-h); min-width: 220px; padding: 0 28px;
  border-radius: 10px; background: var(--ink); color: var(--on-ink); text-decoration: none; transition: background-color 120ms var(--ease);
}
.button:hover { background: var(--button-hover); }
.button:active { background: var(--button-press); }
.button > span { font: 600 var(--t-button)/1 var(--font); letter-spacing: -.006em; }
.button .req { font: 400 var(--t-button-small)/1 var(--font); color: rgba(255, 255, 255, .72); letter-spacing: 0; }
.for-phone { display: none; }
.share-status { position: absolute; right: 0; top: calc(100% + var(--gap)); font: 400 var(--t-meta)/1.4 var(--font); color: var(--ink-2); width: max-content; max-width: 90vw; text-align: right; }
.share-status:empty { display: none; }
@media (hover: none) and (pointer: coarse) {
  .for-mac { display: none; }
  .for-phone { display: inline; }
}

/* The foot: everything else, one row. */
.foot { flex: none; padding: var(--group) 0; display: flex; justify-content: center; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--inset) 20px; }
.foot-nav a { font: 400 var(--t-meta)/1 var(--font); color: var(--ink-2); text-decoration: none; display: inline-block; padding: var(--tight) 0; }
.foot-nav a:hover { color: var(--ink); }

.preview-note { text-align: center; font: 400 12px/1 var(--font); color: var(--ink-2); padding-top: var(--section); }

/* The consent bar from today's script, for Google ad visitors in Europe. */
.consent-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--paper); border-top: 1px solid var(--line); padding: var(--inset) var(--page); }
.consent-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--stack); }  /* on the bar's edges: the logo's left, Help's right */
.consent-bar p { margin: 0; font-size: 14px; }
.consent-bar-choices { display: flex; gap: var(--gap); }
.consent-bar .button { height: 36px; min-width: 0; padding: 0 16px; font: 600 14px/1 var(--font); display: inline-flex; align-items: center; border: 0; cursor: pointer; }
.consent-bar .secondary-button { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.has-consent-bar .sheet { padding-bottom: var(--consent-bar-height, 0px); }

/* Touch: every control gets at least a 44 px target without moving anything. */
@media (pointer: coarse) {
  .bar-nav a { position: relative; }
  .bar-nav a::after { content: ""; position: absolute; left: -12px; right: -12px; top: 50%; height: 44px; transform: translateY(-50%); }
  .vctl::after { content: ""; position: absolute; inset: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  .panel.is-entering { animation: none; }
  .vctl { transition: none; }
}

/* ---------- Short Mac windows. A 13-inch MacBook Air shows about 1440 by 790 of the page, and about 1440 by 720 with
   the Dock showing. The display takes its size from the height, so a short window gives a smaller film and a
   narrower plate. Two steps keep it tidy:
   1. Up to 820 tall, the page's spaces step down a notch (bar 56, 20 for 24, 24 for 32, 16 for 20), which gives
      the film back about 60 px of width.
   2. The plate fits itself to the display's width (the unit is its container). Below 700 wide the three cells can
      no longer keep one line each, so the two statements stack, each on one line, beside the button, 12 apart as
      on a phone; below 648 their words step down to 15 and the button narrows to its words; below 604, to 14.
   The widths come from the words, measured in the page's font: "Fast, private, offline. Everything runs on your
   Mac." is 373 px on one line at 16, 351 at 15, 329 at 14. New words need new widths; tools/sizes.cjs checks that
   no line wraps at every common window size. ---------- */
@media (min-width: 761px) and (max-height: 820px) {
  :root { --bar-h: 56px; --group: 20px; --section: 24px; --title: 16px; }
}
@container unit (max-width: 699.98px) {
  .plate { grid-template-columns: 1fr auto; grid-template-rows: 1fr 1fr; row-gap: var(--inset); }
  .cell { grid-column: 1; padding: 0 var(--group) 0 0; border-left: 0; }
  .cell:first-child { align-items: flex-end; }      /* the two lines meet at the middle of the plate */
  .cell:nth-child(2) { align-items: flex-start; }
  .cell-line { display: inline; }
  .cell--act { grid-column: 2; grid-row: 1 / -1; padding: 0 0 0 var(--group); border-left: 1px solid var(--line); }
}
@container unit (max-width: 647.98px) {
  .cell-text { --t-cell: clamp(14px, 1.12vw, 15px); }  /* never larger than the cells of a wider plate */
  .button { min-width: 192px; padding: 0 20px; }
}
@container unit (max-width: 603.98px) { .cell-text { --t-cell: 14px; } }

/* ---------- Phone: the same sheet, stacked, and still one screen. The film keeps its own shape, 16:10, on every
   phone, so the whole app window shows: the AI chat and Slack films fill their frame edge to edge, and the taller 4:3
   this page had for phones from 700 tall cut the sides off those windows (changed 2 Nov). Every gap inside stays on
   the scale; spare height goes above and below the whole. The switch keeps its one line: the names close up to 20
   apart, which fits four on a 320-wide phone. ---------- */
@media (max-width: 760px) {
  :root { --page: 16px; --bar-h: 52px; --mark-size: 26px; --t-lockup: 17px; --bezel: 6px; --screen-r: 3px; --group: 20px; --section: 20px; --title: 12px; --t-cell: 15px; --switch-gap: 20px; }
  .sheet { height: auto; min-height: 100svh; }  /* fills the screen, and grows rather than overlaps if a consent bar takes room */
  .main { justify-content: center; padding-top: var(--group); }  /* matches the foot's top padding, so the block sits midway */
  .title { padding-top: 0; }
  .room { flex: none; container-type: normal; display: block; padding-top: var(--section); }
  .unit { width: 100%; container-type: normal; }  /* the phone plate below is its own layout, so the Mac's plate steps stay off */
  .display { box-shadow: 0 1px 2px rgba(25, 25, 25, .14), 0 14px 28px -16px rgba(25, 25, 25, .45); }
  .media { object-position: var(--fx, 50%) var(--fy, 50%); }
  .vctl { right: calc(var(--bezel) + var(--gap)); bottom: calc(var(--bezel) + var(--gap)); }
  .plate { height: auto; margin-top: var(--group); display: grid; grid-template-columns: 1fr; row-gap: var(--inset); justify-items: center; text-align: center; }
  .switch + .plate { margin-top: var(--group); }
  .cell { padding: 0; border: 0; display: block; }
  .cell-text { text-wrap: balance; }
  .cell-line { display: inline; }
  .cell--act { width: 100%; display: block; margin-top: var(--gap); }
  .button { width: 100%; }
  .share-status { position: static; text-align: center; width: auto; max-width: none; margin-top: var(--gap); }
  .foot { padding: var(--group) 0 max(var(--group), env(safe-area-inset-bottom)); }
  .consent-bar-inner { flex-direction: column; align-items: stretch; gap: var(--inset); }
  .consent-bar-choices .button { flex: 1; height: 44px; justify-content: center; }
}
/* The narrowest phones (under 340 wide, a folded Galaxy Fold is 280): the names step down to 14 and 12 apart, so the
   four still fit on one line. */
@media (max-width: 339px) { :root { --t-tab: 14px; --switch-gap: 12px; } }
/* While the consent bar is up on a phone it takes about 120 px. On a phone under 700 tall the film gives up a little
   height for it (16:9), which keeps the button clear of the bar; a taller phone has the room already. */
@media (max-width: 760px) and (max-height: 699.98px) { .has-consent-bar .screen { aspect-ratio: 16 / 9; } }
