/* WorkPunk marketing page (workpunk.io). Tokens, type and components follow the app (../Roadmap web app/styles.css and its design
   system): warm neutrals, one purple action color, Inter in two weights, 8 px buttons, 12 px cards, outlined tags.
   Light is the default; dark follows the computer until the footer switch sets <html data-theme> (and data-tone for
   Aubergine), as Appearance does in the app. Use the tokens rather than raw colors.
   The page is direction A from explorations/ (after Mobbin), with B's three views, and C's chapters, pricing and footer.
   explorations/ also loads this file for the tokens, components and app mockups (sections 1 to 5). */

/* ==== 0. Typeface ==== */
/* Inter, served from this site (fonts/, SIL Open Font License in fonts/OFL.txt), so no visitor's address goes to Google.
   One variable file per script range, weights 400 to 500 and optical sizes, as the app uses. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ==== 1. Tokens ==== */
:root {
  color-scheme: light;
  --canvas: #f6f5f3;
  /* The page and cards a breath off white, as in the app, so it doesn't glare. */
  --bg: #fcfbfa;
  --surface: #fcfbfa;
  --fill: #efeeeb;
  --fill-soft: #f6f5f3;
  --ink: #1f1e1c;
  --text-2: #6c6a66;
  --muted: #8e8b86;
  --rule: #ebe9e6;
  --border: #d8d5d0;
  --grid-day: #ebe9e6;
  --focus: #22211f;
  --shadow-1: #00000014;
  --shadow-2: #1018281a;
  --shadow-card: #00000010;
  --accent: #5b16fe;
  --tint-base: #fff;
  --tint-ink: #000;
  --tint-amount: 9%;
  --name-mix: 100%;
  --label-mix: 78%;
  --bar-done: #0000002e;
  /* The soft grey of the product tiles, a step darker than the page. */
  --tile: color-mix(in srgb, var(--fill) 62%, var(--canvas));

  --today: #ef3548;
  --purple: #9400ed;
  --orange: #ff7408;
  --blue: #168de2;
  --red: #e11d48;
  --green: #16a34a;
  --teal: #0d9488;
  --yellow: #eab308;
  --grey: #a8a8a8;
  --on-color: #fff;

  --text-heading: 20px;
  --text-subheading: 16px;
  --text-body: 14px;
  --text-small: 12px;
  --text-tiny: 11px;
  --radius-small: 4px;
  --radius-control: 6px;
  --radius: 8px;
  --radius-large: 12px;
  --radius-pill: 999px;
  --shadow-resting: 0 1px 3px var(--shadow-1);
  --shadow-floating: 0 2px 8px var(--shadow-1);
  --shadow-overlay: 0 8px 24px var(--shadow-2);
  --card-resting: 0 1px 3px var(--shadow-card);
  --card-lift: 0 2px 8px var(--shadow-card);
  --card-hover: inset 0 0 0 1px var(--border), var(--card-lift);
  --header-height: 52px;
  --page-width: 1240px;
}
/* Dark: the app's dark tokens, for the computer's dark mode (unless Light is picked) and for Dark and Aubergine. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #121111; --bg: #191818; --surface: #211f1f; --fill: #2c2a2a; --fill-soft: #252323;
    --ink: #f4f2f1; --text-2: #a9a4a2; --muted: #807b79; --rule: #2e2c2c; --border: #3e3b3b; --grid-day: #262424;
    --focus: #edebea; --shadow-1: #00000059; --shadow-2: #00000080; --shadow-card: #00000059;
    --accent: #9b7bff; --tint-base: #211f1f; --tint-ink: #fff; --tint-amount: 16%; --name-mix: 70%; --label-mix: 70%; --bar-done: #00000038;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #121111; --bg: #191818; --surface: #211f1f; --fill: #2c2a2a; --fill-soft: #252323;
  --ink: #f4f2f1; --text-2: #a9a4a2; --muted: #807b79; --rule: #2e2c2c; --border: #3e3b3b; --grid-day: #262424;
  --focus: #edebea; --shadow-1: #00000059; --shadow-2: #00000080; --shadow-card: #00000059;
  --accent: #9b7bff; --tint-base: #211f1f; --tint-ink: #fff; --tint-amount: 16%; --name-mix: 70%; --label-mix: 70%; --bar-done: #00000038;
}
/* Aubergine: the dark mode whose greys carry a whisper of the accent's purple. */
:root[data-theme="dark"][data-tone="aubergine"] {
  --canvas: #120f14; --bg: #1a161c; --surface: #221d24; --fill: #2e2830; --fill-soft: #262028;
  --ink: #f4f1f5; --text-2: #aca3b0; --muted: #82798a; --rule: #2f2932; --border: #41394a; --grid-day: #27222a;
  --focus: #efeaf1; --tint-base: #221d24;
}

/* ==== 2. Base ==== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, Arial, Helvetica, sans-serif; font-size: var(--text-body); font-weight: 400; line-height: 1.45; letter-spacing: -.006em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; }
b, strong { font-weight: 500; }
h1, h2, h3, h4, p, figure, ul { margin: 0; }
button, input { font: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 12px; border-radius: var(--radius); color: var(--bg); background: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.page-shell { width: min(100% - 48px, var(--page-width)); margin: 0 auto; }

/* Headings: size and grey make the hierarchy, in weight 500. A heading's second thought is --text-2. */
h1, h2 { font-weight: 500; }
h1 { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.03; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.028em; }
:is(h1, h2) > span, .two-tone span { color: var(--text-2); }
h3 { font-size: var(--text-subheading); font-weight: 500; line-height: 1.35; letter-spacing: -.012em; }

/* Eyebrow labels: all caps in normal weight, each in its own palette color (darkened in light, lightened in dark). */
.eyebrow { --label-color: var(--accent); margin-bottom: 16px; color: color-mix(in srgb, var(--label-color) var(--label-mix), var(--tint-ink)); font-size: var(--text-tiny); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.label-purple { --label-color: var(--purple); }
.label-orange { --label-color: var(--orange); }
.label-blue { --label-color: var(--blue); }
.label-red { --label-color: var(--red); }
.label-green { --label-color: var(--green); }
.label-teal { --label-color: var(--teal); }

/* ==== 3. Shared components, as in the app ==== */
/* Buttons: rounded 8 (6 small). Plain .button is secondary: --surface, a --border hairline and a faint lift. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink); background: var(--surface); box-shadow: var(--shadow-resting); font-size: var(--text-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .12s ease, border-color .12s ease, color .12s ease; }
.button:hover { background: var(--fill-soft); border-color: color-mix(in srgb, var(--ink) 12%, var(--border)); }
.button-primary { border-color: transparent; color: var(--surface); background: var(--accent); box-shadow: none; }
.button-primary:hover { border-color: transparent; background: color-mix(in srgb, var(--ink) 12%, var(--accent)); }
.button-ghost { border-color: transparent; color: var(--text-2); background: transparent; box-shadow: none; }
.button-ghost:hover { border-color: transparent; color: var(--ink); background: var(--fill); }
.button-small { height: 28px; padding: 0 10px; border-radius: var(--radius-control); font-size: var(--text-small); }
.button-large { height: 40px; padding: 0 16px; }

/* Text links: ink with a full-width 2 px underline, drawn as a line so descenders don't break it. On hover the line runs
   out to the right and comes back in from the left, a small push forward. */
.text-link { --line: color-mix(in srgb, var(--ink) 45%, transparent); display: inline-block; padding-bottom: 4px; color: var(--ink); font-size: var(--text-body); line-height: 1.4; text-decoration: none; background: linear-gradient(var(--line), var(--line)) 100% 100% / 100% 2px no-repeat; }
.text-link:hover, .text-link:focus-visible { --line: var(--ink); animation: link-forward .6s cubic-bezier(.6, 0, .3, 1); }
@keyframes link-forward {
  0% { background-position: 100% 100%; background-size: 100% 2px; }
  45% { background-position: 100% 100%; background-size: 0 2px; }
  45.01% { background-position: 0 100%; background-size: 0 2px; }
  100% { background-position: 0 100%; background-size: 100% 2px; }
}
@media (prefers-reduced-motion: reduce) { .text-link:hover, .text-link:focus-visible { animation: none; } }

/* Tags: an outlined pill, its color only on a small square before the text. */
.tag { --tag: var(--muted); display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text-2); background: var(--surface); font-size: var(--text-small); font-weight: 500; line-height: 1; white-space: nowrap; }
.tag::before { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 2px; background: var(--tag); content: ""; }
.tag-small { gap: 4px; height: 20px; padding: 0 6px; font-size: var(--text-tiny); }
.tag-small::before { width: 7px; height: 7px; }

/* Cards: --bg with a --border outline and the card shadow, 12 corners. */
.card { border: 1px solid var(--border); border-radius: var(--radius-large); background: var(--bg); box-shadow: var(--card-resting); }

/* Avatars: round, the person's color, white initial; overlapping ones keep an edge in the card's color. */
.avatar, .avatars > i { display: inline-grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--on-color); background: var(--c, var(--muted)); font-size: 10px; font-style: normal; font-weight: 400; line-height: 1; }
.avatars { display: inline-flex; align-items: center; }
.avatars > i { box-shadow: 0 0 0 2px var(--bg); }
.avatars > i + i { margin-left: -5px; }
.square { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 2px; background: var(--c); }

/* The mark: six hooks of a hexagon in purple, lightened in dark mode. In the top bar it turns as the page scrolls (site.js). */
.brand-mark { display: block; flex: 0 0 auto; }
.brand-hooks { fill: none; stroke: color-mix(in srgb, var(--purple) var(--name-mix), var(--tint-ink)); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }

/* App icons: a feature's glyph on a tile of its color, sized by font-size so they can sit inside a headline. */
.app-icon { --c: var(--purple); display: inline-grid; width: 1em; height: 1em; flex: 0 0 auto; place-items: center; border-radius: .26em; background: linear-gradient(165deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c) 70%); box-shadow: 0 .03em .1em #00000030, inset 0 0 0 1px #ffffff2e; vertical-align: -.14em; }
.app-icon svg { width: 58%; height: 58%; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Segmented control: choices in a --fill track, the chosen one on a raised plate that slides. */
.segmented { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 2px; border-radius: var(--radius); background: var(--fill); }
.segmented-item { position: relative; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 0; border-radius: var(--radius-control); color: var(--text-2); background: transparent; font-size: var(--text-small); cursor: pointer; }
.segmented-item[aria-pressed="true"] { color: var(--ink); }
.segmented-indicator { position: absolute; top: 2px; left: 2px; z-index: -1; width: 0; height: 28px; border-radius: var(--radius-control); background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow-resting); transition: transform .26s cubic-bezier(.3, .7, .2, 1), width .26s cubic-bezier(.3, .7, .2, 1); }
:root[data-theme="dark"] .segmented-indicator { background: color-mix(in srgb, var(--ink) 10%, var(--surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .segmented-indicator { background: color-mix(in srgb, var(--ink) 10%, var(--surface)); } }

/* Reveal: sections rise in gently the first time they come into view. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* "Back to top" fades in each time it comes into view. */
.back-to-top { color: var(--text-2); text-decoration: none; transition: color .16s ease, opacity .7s ease, transform .7s ease; }
.back-to-top:hover { color: var(--ink); }
.back-to-top.is-waiting { opacity: 0; transform: translateY(8px); transition: color .16s ease, opacity 0s, transform 0s; }

/* ==== 4. Top bar ==== */
/* As the app's: full width, the page color; the mark left, the places as tabs in the middle. */
.site-header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: var(--header-height); padding: 0 16px; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { position: relative; justify-self: start; display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.site-header .brand-mark { will-change: transform; }
/* The name fades in beside the mark on hover or keyboard focus, over the bar so nothing moves. */
.brand-name { position: absolute; top: 50%; left: calc(100% + 10px); font-size: var(--text-body); font-weight: 500; white-space: nowrap; opacity: 0; transform: translate(-4px, -50%); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.brand-name span { color: var(--muted); font-size: var(--text-small); font-weight: 400; }
.brand:focus-visible .brand-name { opacity: 1; transform: translate(0, -50%); }
@media (hover: hover) {
  .brand:hover .brand-name { opacity: 1; transform: translate(0, -50%); }
}

/* Tabs go places. As the app's views, no line: the one in view in --ink, the others --muted. */
.tabs { display: flex; align-self: stretch; gap: 4px; }
.tab { position: relative; display: inline-flex; align-items: center; padding: 0 10px; color: var(--muted); font-size: var(--text-body); text-decoration: none; white-space: nowrap; transition: color .12s ease; }
.tab:hover { color: var(--text-2); }
.tab[aria-current] { color: var(--ink); }
.tab:focus-visible { outline-offset: -4px; border-radius: var(--radius); }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
/* The header's call to action: ink until hover, then purple with a soft glow around it and only a hint on the text. */
.nav-cta { --cta-purple: #5b16fe; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--radius); color: var(--bg); background: var(--ink); font-size: var(--text-body); text-decoration: none; white-space: nowrap; transition: color .35s ease, background .45s ease, text-shadow .45s ease, box-shadow .45s ease; }
.nav-cta:hover, .nav-cta:focus-visible { color: #fff; background: var(--cta-purple); text-shadow: 0 0 8px #ffffff40; box-shadow: 0 4px 14px color-mix(in srgb, var(--cta-purple) 28%, transparent); }

/* Mobile menu: a button whose lines turn into an X, and a card that fades in and out. */
.mobile-menu { position: relative; display: none; }
.menu-toggle { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 0; border-radius: var(--radius-control); color: var(--ink); background: transparent; cursor: pointer; }
.menu-toggle:hover { background: var(--fill); }
.menu-toggle span { position: relative; display: block; width: 16px; height: 10px; }
.menu-toggle i { position: absolute; left: 0; width: 16px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .2s ease, top .2s ease; }
.menu-toggle i:first-child { top: 1px; }
.menu-toggle i:last-child { top: 7.5px; }
.mobile-menu.is-open .menu-toggle i:first-child { top: 4.25px; transform: rotate(45deg); }
.mobile-menu.is-open .menu-toggle i:last-child { top: 4.25px; transform: rotate(-45deg); }
.mobile-menu-card { position: absolute; top: calc(100% + 10px); right: 0; display: grid; min-width: 200px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-large); background: var(--surface); box-shadow: var(--shadow-overlay); opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top right; transition: opacity .14s ease, transform .18s cubic-bezier(.3, .7, .2, 1), visibility 0s .18s; }
.mobile-menu.is-open .mobile-menu-card { opacity: 1; visibility: visible; transform: none; transition: opacity .14s ease, transform .18s cubic-bezier(.3, .7, .2, 1), visibility 0s; }
.mobile-menu-card a { padding: 8px 10px; border-radius: var(--radius); font-size: var(--text-body); text-decoration: none; }
.mobile-menu-card a:hover { background: var(--fill); }

/* ==== 5. App mockups, drawn with the app's parts ==== */
/* The app window and a project's Timeline. */
.app-window { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-large); background: var(--bg); box-shadow: var(--shadow-overlay); font-size: var(--text-small); }
.window-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: 44px; padding: 0 12px; border-bottom: 1px solid var(--rule); }
.window-start { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.window-start .brand-mark { margin-right: 6px; }
.window-start b { overflow: hidden; text-overflow: ellipsis; }
.crumb-muted { color: var(--muted); }
.crumb-slash { color: var(--border); }
.window-tabs { display: flex; align-self: stretch; gap: 2px; }
.window-tabs span { position: relative; display: flex; align-items: center; padding: 0 8px; color: var(--muted); }
.window-tabs .is-current { color: var(--ink); }
.window-bar > .avatars { justify-self: end; }
.timeline-dates { display: grid; grid-template-columns: 150px 1fr; height: 30px; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 10px; }
.dates-side { border-right: 1px solid var(--rule); }
.dates-weeks { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; }
.dates-weeks span { padding-left: 6px; white-space: nowrap; }
/* The today date stands where its week's label would be, as in the app. */
.dates-weeks span:nth-child(6) { visibility: hidden; }
.today-date { position: absolute; top: 50%; left: var(--today-at, 62%); display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #fff; background: var(--today); font-size: 9px; font-weight: 500; transform: translate(-50%, -50%); }
.timeline-body { display: grid; grid-template-columns: 150px 1fr; }
.timeline-side { border-right: 1px solid var(--rule); }
.group-row, .item-row { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; white-space: nowrap; }
.group-row { position: relative; padding-left: 20px; }
.group-row::before { position: absolute; top: 13px; left: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--c); content: ""; }
.group-row small { color: var(--muted); font-size: 10px; }
.group-row .pct { margin-left: auto; }
.item-row { position: relative; margin-left: 20px; padding-left: 0; border-bottom: 1px solid var(--rule); overflow: hidden; }
.item-row .avatar { width: 16px; height: 16px; margin-left: auto; font-size: 8px; }
.timeline-chart { position: relative; background: linear-gradient(to right, var(--grid-day) 1px, transparent 1px) 0 0 / calc(100% / 7) 100%; }
.chart-row { position: relative; height: 34px; }
.bar { position: absolute; top: 8px; left: calc(var(--start) * 1%); width: calc(var(--length) * 1%); height: 18px; border-radius: var(--radius-pill); background: linear-gradient(to right, var(--bar-done) var(--done), transparent var(--done)), var(--c); }
.milestone { position: absolute; top: 9px; left: calc(var(--start) * 1%); display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 10px; white-space: nowrap; transform: translateX(calc(-100% + 6px)); flex-direction: row-reverse; }
.milestone b { width: 10px; height: 10px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.today-line { position: absolute; top: 0; bottom: 0; left: var(--today-at, 62%); width: 2px; transform: translateX(-50%); background: var(--today); }
/* The bot: a purple face with two eyes, in the logo's color. */
.bot { display: flex; width: 30px; height: 30px; flex: 0 0 30px; align-items: center; justify-content: center; gap: 5px; border-radius: 50%; background: color-mix(in srgb, var(--purple) var(--name-mix), var(--tint-ink)); }
.bot i { width: 4px; height: 8px; border-radius: 2px; background: #fff; animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: none; } 95% { transform: scaleY(.15); } }
@media (prefers-reduced-motion: reduce) { .bot i { animation: none; } }

/* Today: the dashboard's Today card. */
.today-card { padding: 20px 20px 8px; }
.mini-tabs { display: flex; gap: 4px; margin: 12px 0 4px; border-bottom: 1px solid var(--rule); }
.mini-tabs span { position: relative; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; color: var(--muted); }
.mini-tabs .is-current { color: var(--ink); }
.mini-tabs .is-current::after { position: absolute; right: 8px; bottom: -1px; left: 8px; height: 2px; border-radius: 2px 2px 0 0; background: var(--ink); content: ""; }
.count { display: inline-grid; min-width: 16px; height: 16px; place-items: center; padding: 0 4px; border-radius: var(--radius-pill); color: #fff; background: var(--today); font-size: 10px; font-style: normal; }
.list-rows { display: grid; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--rule); }
.list-row:last-child { border-bottom: 0; }
.row-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; color: color-mix(in srgb, var(--c) 82%, var(--tint-ink)); background: color-mix(in srgb, var(--c) var(--tint-amount), var(--tint-base)); font-size: var(--text-small); }
.row-text { display: grid; min-width: 0; flex: 1; }
.row-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-text small { color: var(--muted); font-size: var(--text-small); }
.task-id { margin-right: 4px; color: var(--muted); font-weight: 400; }

/* A project card: the phases as a strip, milestones as diamonds, today in red. */
.project-card { padding: 20px; text-align: left; }
.project-card-head { display: flex; align-items: center; gap: 10px; font-size: var(--text-subheading); }
.project-card-head .tag { margin-left: auto; }
.strip { position: relative; display: flex; height: 6px; margin: 28px 6px 0; }
.strip span { width: var(--w); background: var(--c); }
.strip span:first-child { border-radius: 3px 0 0 3px; }
.strip span:nth-child(3) { border-radius: 0 3px 3px 0; }
.strip::after { position: absolute; top: 0; right: 0; bottom: 0; left: 48%; background: color-mix(in srgb, var(--bg) 58%, transparent); content: ""; }
.diamond { position: absolute; top: 50%; left: var(--at); z-index: 1; width: 8px; height: 8px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.strip-today { position: absolute; top: -5px; bottom: -5px; left: var(--at); z-index: 1; width: 1.5px; background: var(--today); }
.strip-dates { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: var(--text-small); }
.phase-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: var(--text-small); }
.phase-legend span { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.phase-legend span::before { width: 6px; height: 6px; border-radius: 1px; background: var(--c); content: ""; }
.phase-legend small { color: var(--muted); font-size: var(--text-small); }
.project-card-foot { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.project-card-foot span:not(.avatars) { color: var(--text-2); }
.project-card-foot .avatars { margin-left: auto; }

/* The Board: a column per status, task cards in them. */
.board-columns { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-large); background: var(--bg); box-shadow: var(--card-resting); font-size: var(--text-small); }
.board-column { display: grid; align-content: start; gap: 10px; padding: 0 12px 20px; background: var(--canvas); }
.board-column + .board-column { border-left: 1px solid var(--rule); }
.column-head { display: flex; align-items: center; gap: 8px; height: 44px; margin: 0 -12px 4px; padding: 0 12px; border-bottom: 1px solid var(--rule); background: var(--bg); font-weight: 500; white-space: nowrap; }
.column-head small { color: var(--muted); font-size: var(--text-small); font-weight: 400; }
.column-head em { margin-left: auto; color: var(--muted); font-size: var(--text-small); font-style: normal; font-weight: 400; }
.status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--c); }
.task-card { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--card-resting); font-size: var(--text-small); text-align: left; }
.task-card.is-chosen { border-color: var(--ink); box-shadow: 0 0 0 .5px var(--ink), var(--card-lift); }
.task-card small { color: var(--muted); font-size: var(--text-small); }
.task-card b { font-weight: 400; font-size: var(--text-body); }
.task-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--text-2); font-size: var(--text-small); white-space: nowrap; }
.task-meta .avatar { margin-left: auto; }
.work-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.work-item::before { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 2px; background: var(--c); content: ""; }
.subtasks { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.subtasks i { width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(var(--green) var(--p), var(--border) 0); -webkit-mask: radial-gradient(circle, transparent 3.5px, #000 4px); mask: radial-gradient(circle, transparent 3.5px, #000 4px); }

/* Backlog: rows grouped under work items. */
.backlog { overflow: hidden; font-size: var(--text-small); text-align: left; }
.backlog-group { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--rule); background: var(--fill-soft); font-weight: 500; }
.backlog-group small { color: var(--muted); font-weight: 400; }
.backlog-row { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.backlog-row:last-child { border-bottom: 0; }
.backlog-row b { overflow: hidden; font-weight: 400; text-overflow: ellipsis; }
.backlog-row .task-id { flex: 0 0 auto; }
.backlog-row .tag { margin-left: auto; }
.backlog-row .avatar { margin-left: 4px; }
.backlog-row .tag + .avatar { margin-left: 0; }

/* Yearly overview: every project on one year, the name under its bar in the bar's color. */
.year { padding: 16px 16px 10px; text-align: left; }
.year-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; font-size: var(--text-body); }
.year-head span { color: var(--text-2); font-size: var(--text-small); }
.year-grid { position: relative; background: linear-gradient(to right, var(--rule) 1px, transparent 1px) 0 0 / calc(100% / 12) 100%; }
.year-row { position: relative; height: 44px; }
.year-bar { position: absolute; top: 8px; left: calc(var(--s) * 1%); width: calc(var(--l) * 1%); height: 6px; border-radius: 3px; background: var(--c); }
.year-bar span { position: absolute; top: 11px; left: 0; color: color-mix(in srgb, var(--c) 86%, var(--tint-ink)); font-size: var(--text-small); white-space: nowrap; }
.year-today { position: absolute; top: -4px; bottom: 0; left: var(--at); width: 1.5px; background: var(--today); }
.year-months { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 4px; color: var(--muted); font-size: var(--text-tiny); }
.year-months span { text-align: center; }

/* A task opened beside the plan. */
.task-panel { display: grid; align-content: start; gap: 14px; padding: 18px; font-size: var(--text-small); text-align: left; }
.task-panel-head { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.task-panel-head .tag { margin-left: auto; }
.task-panel h4 { font-size: var(--text-subheading); font-weight: 500; letter-spacing: -.012em; }
.task-facts { display: grid; grid-template-columns: 84px 1fr; gap: 8px 12px; color: var(--muted); }
.task-facts span:nth-child(even) { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.task-facts .avatar { width: 16px; height: 16px; font-size: 8px; }
.checklist { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--rule); }
.checklist span { display: flex; align-items: center; gap: 8px; }
.checklist span::before { width: 12px; height: 12px; flex: 0 0 12px; border: 1.25px solid var(--border); border-radius: 4px; content: ""; }
.checklist .is-done { color: var(--muted); text-decoration: line-through; }
.checklist .is-done::before { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5 8l4-4.2' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* Comments and activity, with a mention in the accent. */
.comment { display: flex; gap: 10px; text-align: left; }
.comment .avatar { width: 24px; height: 24px; font-size: 11px; }
.comment-body { display: grid; gap: 2px; min-width: 0; font-size: var(--text-small); }
.comment-body small { color: var(--muted); font-size: var(--text-tiny); }
.comment-body small b { color: var(--ink); font-size: var(--text-small); }
.mention { padding: 0 3px; border-radius: 4px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* Search with ⌘K. */
.search-panel { overflow: hidden; font-size: var(--text-small); text-align: left; }
.search-input { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--rule); font-size: var(--text-body); }
.search-input svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search-input kbd, kbd.key { margin-left: auto; padding: 1px 6px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); background: var(--surface); font: inherit; font-size: var(--text-tiny); }
.search-row { display: flex; align-items: center; gap: 10px; height: 36px; margin: 4px 6px; padding: 0 8px; border-radius: var(--radius-control); white-space: nowrap; }
.search-row.is-on { background: var(--fill); }
.search-row small { margin-left: auto; color: var(--muted); }

/* A release: what shipped, ready to copy. */
.release { display: grid; gap: 10px; padding: 16px; font-size: var(--text-small); text-align: left; }
.release-head { display: flex; align-items: center; gap: 8px; }
.release-head b { font-size: var(--text-body); }
.release-head small { margin-left: auto; color: var(--muted); }
.release ul { display: grid; gap: 6px; padding: 0; color: var(--text-2); list-style: none; }
.release li { display: flex; gap: 8px; }
.release .button { justify-self: start; pointer-events: none; }

/* A notice in the corner, like the app's toast. */
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border: 1px solid var(--border); border-radius: var(--radius-large); background: var(--surface); box-shadow: var(--shadow-overlay); font-size: var(--text-small); text-align: left; }
.toast b, .toast small { display: block; }
.toast small { color: var(--muted); font-size: var(--text-tiny); }

/* The PDF, always on light paper. */
.paper-sheet { --paper-ink: #1f1e1c; --paper-muted: #8e8b86; --paper-rule: #ebe9e6; aspect-ratio: 1.414; padding: 6% 6.5%; border-radius: 4px; color: var(--paper-ink); background: #fff; box-shadow: 0 1px 2px #0000001a, var(--shadow-overlay); text-align: left; transform: rotate(-1.2deg); }
.paper-header { display: flex; align-items: center; justify-content: space-between; color: var(--paper-muted); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.paper-logo { display: inline-grid; height: 20px; place-items: center; padding: 0 10px; border: 1px dashed #d8d5d0; border-radius: 4px; letter-spacing: .04em; }
.paper-sheet h3 { margin-top: 5%; font-size: clamp(15px, 1.8vw, 20px); }
.paper-dates { margin-top: 2px; color: var(--paper-muted); font-size: 10px; }
.paper-table { margin-top: 5%; font-size: 9px; }
.paper-row { position: relative; display: grid; grid-template-columns: 30% 1fr; align-items: center; height: 17px; white-space: nowrap; border-bottom: 1px solid var(--paper-rule); }
.paper-columns { grid-template-columns: 30% repeat(3, 1fr); color: var(--paper-muted); }
.paper-phase { font-weight: 500; }
.paper-row:not(.paper-columns) > span:first-child { padding-left: 8px; overflow: hidden; text-overflow: ellipsis; }
.paper-phase > span:first-child { padding-left: 0 !important; }
.paper-bar { position: relative; height: 7px; }
.paper-bar::before { position: absolute; top: 0; bottom: 0; left: calc(var(--start) * 1%); width: calc(var(--length) * 1%); border-radius: 4px; background: var(--c); content: ""; }
.paper-phase .paper-bar::before { opacity: .35; }
.paper-milestones { display: flex; gap: 20px; margin-top: 5%; color: var(--paper-muted); font-size: 9px; }

/* ==== 6. Page ==== */
/* The page is a light sheet with rounded bottom corners, lying on the dark footer. */
body.has-sheet { background: #0f0e0e; }
/* The footer lies still behind the sheet (section 7), so the sheet's lower edge casts a soft shadow on it. */
.sheet { position: relative; z-index: 1; border-radius: 0 0 40px 40px; background: var(--bg); box-shadow: 0 24px 64px #0000004d; }
.sheet .site-header { border-bottom-color: transparent; }
section { scroll-margin-top: var(--header-height); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Hero: centered, the app icons inside the headline. */
.hero { display: grid; justify-items: center; padding: 104px 0 0; text-align: center; }
.hero h1 { font-size: clamp(42px, 7.2vw, 96px); line-height: 1.04; letter-spacing: -.048em; }
.hero h1 .app-icon { margin: 0 .06em; }
.hero-sub { margin-top: 32px; color: var(--text-2); font-size: 18px; line-height: 1.5; letter-spacing: -.01em; }
.hero .actions { margin-top: 36px; }

/* One project, three views: the cards are tabs, the window shows the one picked, the year is docked under it. */
.views { padding: 120px 0 0; }
.views-kicker { margin-bottom: 24px; color: var(--text-2); font-size: var(--text-subheading); text-align: center; }
.view-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; }
.view-card { display: grid; align-content: start; justify-items: start; gap: 10px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-large); color: var(--ink); background: var(--bg); text-align: left; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.view-card b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.view-card > span:last-child { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.view-card:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--border)); }
.view-card[aria-selected="true"] { border-color: var(--c); box-shadow: 0 0 0 1px var(--c); }
.views-stage { margin-top: 40px; padding: 48px 48px 24px; border-radius: 32px; background: var(--tile); }
.views-window { max-width: 1040px; margin: 0 auto; }
.views-window .window-tabs span { cursor: pointer; }
.views-window .timeline-dates, .views-window .timeline-body { grid-template-columns: 170px 1fr; }
.view-pane { min-height: 408px; }
.view-pane[hidden] { display: none; }
.view-pane.is-entering { animation: pane-in .35s ease both; }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .view-pane.is-entering { animation: none; } }
.views-window .board-columns { min-height: 408px; border: 0; border-radius: 0; box-shadow: none; }
.views-window .backlog-row, .views-window .backlog-group { padding: 0 20px; }
.dock-handle { width: 40px; height: 4px; margin: 16px auto 12px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.views-stage .year { max-width: 1040px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius-large); background: var(--bg); box-shadow: var(--card-resting); }

/* Statement: what WorkPunk fixes, in two tones, then a search line that types. */
.statement { padding: 160px 0 56px; }
.statement h2, .statement-quiet { max-width: 900px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 500; line-height: 1.12; letter-spacing: -.032em; }
.statement-quiet { margin-top: 36px; color: var(--text-2); }
.search-line { display: flex; align-items: center; gap: 16px; margin-top: 64px; font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -.03em; }
.search-line .app-icon { font-size: 1.1em; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: -10px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Moments: the small things in grey tiles, gliding past. Hover stops them. */
.marquee { overflow: hidden; padding: 24px 0 8px; -webkit-mask: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee-track { animation: none; } .caret { animation: none; } }
.moment { display: grid; gap: 14px; width: var(--w, 360px); }
.moment-tile { position: relative; display: grid; height: 340px; place-items: center; padding: 56px 28px 28px; border-radius: 28px; background: var(--tile); }
.moment-tile > .app-icon { position: absolute; top: 18px; left: 18px; font-size: 40px; }
.moment-tile > :not(.app-icon) { width: 100%; }
.moment p { padding-left: 6px; color: var(--text-2); font-size: var(--text-body); }
.keys { display: grid; gap: 8px; }
.keys span { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg); box-shadow: var(--card-resting); font-size: var(--text-small); }
.keys kbd.key { margin-left: 0; }

/* Chapters: a two-line title left, a few words right, the product in grey tiles, the features as a list. */
/* The line between sections runs only as wide as the content. */
.chapter, .closing { position: relative; }
.chapter::before, .closing::before { position: absolute; top: 0; left: 50%; width: min(100% - 48px, var(--page-width)); height: 1px; background: var(--rule); transform: translateX(-50%); content: ""; }
.chapter { padding: 136px 0 104px; }
.chapters { margin-top: 160px; }
.chapter-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.chapter-head h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.035em; }
.chapter-head p { max-width: 520px; color: var(--text-2); font-size: 20px; line-height: 1.5; letter-spacing: -.012em; }
.chapter-head .text-link { margin-top: 28px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 80px 0 72px; }
.tile { position: relative; height: 400px; overflow: hidden; border-radius: 28px; background: var(--tile); text-align: center; }
.tile.is-wide { grid-column: span 2; }
.tile h3 { padding-top: 28px; }
.tile-visual { position: absolute; top: 80px; right: 32px; left: 32px; text-align: left; }
.tile.is-wide .tile-visual { right: 48px; left: 48px; }
.tile .paper-sheet { transform: rotate(-1.5deg); }
.chapter-features { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.chapter-features > span { color: var(--text-2); }
.feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.feature-cols > div { display: grid; align-content: start; gap: 2px; }
.feature-cols > div + div { padding-left: 32px; border-left: 1px solid var(--rule); }
.feature-cols summary { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--text-2); list-style: none; cursor: pointer; transition: color .15s ease; }
.feature-cols summary::-webkit-details-marker { display: none; }
.feature-cols summary::after { color: var(--muted); content: "+"; transition: transform .2s ease; }
.feature-cols details[open] summary { color: var(--ink); }
.feature-cols details[open] summary::after { transform: rotate(45deg); }
.feature-cols summary:hover { color: var(--ink); }
.feature-cols details p { padding: 0 0 10px; color: var(--muted); font-size: var(--text-body); line-height: 1.5; }

/* Pricing: the chapter's head, with the price on the right. */
.pricing { padding-bottom: 136px; }
.price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.price b { color: var(--ink); font-size: 64px; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.price span { color: var(--text-2); font-size: 18px; }
.chapter-head .button { margin-top: 32px; }

/* Closing */
.closing { padding: 168px 0 160px; text-align: center; }
.closing .page-shell { display: grid; justify-items: center; }
.closing h2 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.045em; }
.closing p { margin-top: 24px; color: var(--text-2); font-size: 18px; }
.closing .actions { margin-top: 36px; }

/* ==== 7. Footer ==== */
/* Always dark, so it borrows the dark tokens. It starts under the sheet's rounded corners, and is held at the bottom of
   the window behind the sheet (sticky, under it), so scrolling to the end slides the page off it like a lid. */
.site-footer { position: sticky; bottom: 0; z-index: 0; color-scheme: dark; --ink: #f4f2f1; --text-2: #a9a4a2; --muted: #807b79; --rule: #2e2c2c; --border: #3e3b3b; --fill: #2c2a2a; --surface: #211f1f; --shadow-1: #00000059; --name-mix: 70%; --tint-ink: #fff; margin-top: -40px; padding: 120px 0 40px; color: var(--ink); background: #0f0e0e; }
.site-footer .segmented-indicator { background: color-mix(in srgb, var(--ink) 10%, var(--surface)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 72px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-size: var(--text-subheading); font-weight: 500; text-decoration: none; }
.footer-grid > div > p { max-width: 240px; margin-top: 14px; color: var(--text-2); }
.footer-grid h2 { margin-bottom: 18px; font-size: var(--text-body); font-weight: 500; letter-spacing: 0; }
.footer-grid ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.footer-grid a:not(.footer-brand) { color: var(--text-2); text-decoration: none; transition: color .12s ease; }
.footer-grid a:not(.footer-brand):hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--text-small); }

/* ==== 8. Narrower screens ==== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .main-nav, .login-link { display: none; }
  .site-header { grid-template-columns: auto 1fr; }
  .mobile-menu { display: block; }
  .chapter-head, .chapter-features { grid-template-columns: 1fr; gap: 24px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile.is-wide { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .page-shell { width: calc(100% - 32px); }
  .site-header { padding: 0 12px 0 16px; }
  .brand-name { display: none; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }

  /* App mockups: the side pane narrows, the window's tabs and some details go. */
  .window-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .window-tabs { display: none; }
  .timeline-dates, .timeline-body { grid-template-columns: 104px 1fr; }
  .dates-weeks { grid-template-columns: repeat(4, 1fr); }
  .dates-weeks span:nth-child(n+4) { display: none; }
  .timeline-chart { background-size: 25% 100%; }
  .group-row .pct, .group-row small, .item-row .avatar { display: none; }
  .group-row, .item-row { font-size: 11px; }

  .sheet { border-radius: 0 0 28px 28px; }
  .chapter::before, .closing::before { width: calc(100% - 32px); }
  .hero { padding-top: 64px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: var(--text-subheading); }
  .hero-sub br { display: none; }
  .hero .actions, .closing .actions { width: 100%; flex-direction: column; }

  .views { padding-top: 88px; }
  .view-cards { grid-template-columns: 1fr; gap: 8px; }
  .view-card { grid-template-columns: auto 1fr; align-items: center; padding: 14px 16px; }
  .view-card > span:last-child { display: none; }
  .view-card b { font-size: var(--text-subheading); }
  .views-stage { margin: 24px -16px 0; padding: 16px 12px 12px; border-radius: 24px; }
  .views-window .timeline-dates, .views-window .timeline-body { grid-template-columns: 104px 1fr; }
  .view-pane, .views-window .board-columns { min-height: 360px; }
  .views-window .backlog-row .tag { display: none; }

  .statement { padding: 112px 0 40px; }
  .statement br { display: none; }
  .moment { --w: 300px !important; }

  .chapters { margin-top: 112px; }
  .chapter { padding: 96px 0 72px; }
  .chapter-head p { font-size: 18px; }
  .tiles { grid-template-columns: 1fr; margin: 48px 0; }
  .tile { height: 340px; }
  .tile-visual, .tile.is-wide .tile-visual { right: 20px; left: 20px; }
  .feature-cols { grid-template-columns: 1fr; }
  .feature-cols > div + div { padding-left: 0; border-left: 0; }
  .pricing { padding-bottom: 96px; }
  .closing { padding: 120px 0; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==== 9. Page not found (404.html) ==== */
.not-found { display: grid; min-height: 100vh; align-content: center; justify-items: center; gap: 32px; padding: 64px 0; text-align: center; }
.not-found h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.045em; }
@media (max-width: 640px) { .not-found .actions { width: 100%; flex-direction: column; } }

/* ==== 10. Legal pages (privacy.html, terms.html) ==== */
.legal-header { grid-template-columns: 1fr auto; }
.legal { width: min(100% - 48px, 720px); margin: 0 auto; padding: 88px 0 120px; }
.legal h1 { font-size: clamp(36px, 4.4vw, 52px); letter-spacing: -.04em; }
.legal-meta { margin-top: 16px; color: var(--muted); }
.legal-lead { margin-top: 32px; color: var(--text-2); font-size: 18px; line-height: 1.55; }
.legal h2 { margin: 56px 0 14px; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.legal h3 { margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 15px; line-height: 1.65; }
.legal p + p, .legal ul + p, .legal table + p { margin-top: 14px; }
.legal ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 20px; }
.legal b { color: var(--ink); }
.legal a:not(.button) { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); text-underline-offset: 3px; }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); color: var(--text-2); text-align: left; vertical-align: top; }
.legal th { color: var(--ink); font-weight: 500; }
/* While a draft: what still has to be filled in stands out, and a note says it isn't final. */
.placeholder { padding: 0 4px; border-radius: 4px; color: var(--ink); background: color-mix(in srgb, var(--yellow) 30%, transparent); }
.draft-note { margin-top: 32px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--yellow) 60%, var(--border)); border-radius: var(--radius-large); color: var(--ink); background: color-mix(in srgb, var(--yellow) 10%, var(--bg)); font-size: 14px; }
.legal-footer { padding: 32px 0 48px; border-top: 1px solid var(--rule); }
.legal-footer .page-shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); font-size: var(--text-small); }
.legal-footer a { color: var(--text-2); text-decoration: none; }
.legal-footer a:hover { color: var(--ink); }
.legal-footer nav { display: flex; gap: 20px; }
@media (max-width: 640px) {
  .legal { width: calc(100% - 32px); padding: 56px 0 88px; }
  .legal table { font-size: 13px; }
}

/* ==== 11. Inner pages (faq.html, and the pages that come) ==== */
/* The page's own head: a two-tone title, a line, and links to its parts. Left-aligned, as the chapters. */
.page-head { padding: 128px 0 96px; }
.page-head h1 { max-width: 900px; font-size: clamp(42px, 6vw, 80px); line-height: 1.02; letter-spacing: -.045em; }
.page-head > p { max-width: 620px; margin-top: 28px; color: var(--text-2); font-size: 20px; line-height: 1.5; letter-spacing: -.012em; }
.page-toc { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; padding: 0; list-style: none; }

/* FAQ: a group's title on the left, its questions on the right, each opening in place. */
.faq-group { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding: 72px 0; }
.faq-group::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: var(--rule); content: ""; }
.faq-group > h2 { position: sticky; top: calc(var(--header-height) + 32px); align-self: start; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.03em; }
.faq-list { display: grid; }
.faq-item { border-bottom: 1px solid var(--rule); transition: border-color .3s ease; }
.faq-item:first-child { border-top: 1px solid var(--rule); }
@media (hover: hover) { .faq-item:hover { border-bottom-color: color-mix(in srgb, var(--ink) 24%, transparent); } }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
/* The plus turns into a cross when the answer is open. */
.faq-item summary::after { position: relative; width: 14px; height: 14px; flex: 0 0 14px; background: linear-gradient(var(--text-2), var(--text-2)) center / 14px 1.5px no-repeat, linear-gradient(var(--text-2), var(--text-2)) center / 1.5px 14px no-repeat; transition: transform .25s cubic-bezier(.3, .7, .2, 1); content: ""; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { display: grid; gap: 12px; max-width: 640px; padding: 0 38px 26px 0; }
.faq-answer p { color: var(--text-2); font-size: 16px; line-height: 1.6; }
.faq-answer a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); text-underline-offset: 3px; }
.faq-answer b { color: var(--ink); }
/* Where the browser can, the answer slides open instead of appearing. */
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: clip; transition: height .3s cubic-bezier(.3, .7, .2, 1), content-visibility .3s allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
  @media (prefers-reduced-motion: reduce) { .faq-item::details-content { transition: none; } }
}
@media (max-width: 900px) {
  .faq-group { grid-template-columns: 1fr; gap: 24px; padding: 56px 0; }
  .faq-group > h2 { position: static; }
}
@media (max-width: 640px) {
  .page-head { padding: 72px 0 56px; }
  .page-head h1 { font-size: 44px; }
  .page-head > p { font-size: 18px; }
  .faq-item summary h3 { font-size: 16px; }
  .faq-answer { padding-right: 0; }
}

/* ==== 12. Pricing and Product pages (pricing.html, product.html) ==== */
/* A section's own head inside a page: a two-tone title and a line. */
.block { position: relative; padding: 120px 0; }
.block::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: var(--rule); content: ""; }
.block-head { max-width: 760px; margin-bottom: 56px; }
.block-head h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.06; letter-spacing: -.035em; }
.block-head p { margin-top: 20px; color: var(--text-2); font-size: 18px; line-height: 1.55; }
.block-head.is-centered { margin-right: auto; margin-left: auto; text-align: center; }

/* A list of what's included: a small square in the group's color before each line. */
.ticks { display: grid; gap: 10px; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.ticks li::before { position: absolute; top: 7px; left: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--accent)); content: ""; }
.ticks b { color: var(--ink); }

/* ---- Pricing ---- */
.price-stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; padding: 0 0 120px; }
.plan-card { display: grid; align-content: space-between; gap: 40px; padding: 40px; border-radius: 28px; background: var(--tile); }
.plan-card .tag { justify-self: start; }
.plan-price { display: flex; align-items: baseline; gap: 12px; }
.plan-price b { font-size: 96px; font-weight: 500; letter-spacing: -.055em; line-height: .9; }
.plan-price span { color: var(--text-2); font-size: 20px; line-height: 1.3; }
.plan-card .button { width: 100%; }
.plan-fine { display: grid; gap: 4px; color: var(--muted); font-size: var(--text-small); text-align: center; }

.calc { display: grid; align-content: start; gap: 28px; padding: 40px; }
.calc h2 { font-size: 22px; letter-spacing: -.02em; }
.calc-row { display: grid; gap: 12px; }
.calc-label { display: flex; align-items: baseline; justify-content: space-between; color: var(--text-2); font-size: var(--text-body); }
.calc-label output { color: var(--ink); font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.calc input[type="range"] { width: 100%; height: 24px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--fill-to, 10%) 100% no-repeat, var(--fill); }
.calc input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--fill); }
.calc input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
.calc input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -8px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-floating); -webkit-appearance: none; appearance: none; }
.calc input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-floating); }
.stepper { display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 2px; border-radius: var(--radius); background: var(--fill); }
.stepper button { display: grid; width: 32px; height: 28px; place-items: center; border: 0; border-radius: var(--radius-control); color: var(--ink); background: transparent; font-size: 16px; cursor: pointer; }
.stepper button:hover { background: var(--surface); }
.stepper output { min-width: 84px; font-size: var(--text-small); text-align: center; }
.calc-total { display: grid; gap: 10px; padding-top: 24px; border-top: 1px solid var(--rule); }
.calc-total > div { display: flex; justify-content: space-between; color: var(--text-2); font-size: var(--text-body); }
.calc-total .is-sum { align-items: baseline; color: var(--ink); }
.calc-total .is-sum output { font-size: 40px; font-weight: 500; letter-spacing: -.04em; }

.included { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.included h3 { margin-bottom: 16px; }

.trial-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.trial-track::before { position: absolute; top: 9px; right: 16%; left: 0; height: 2px; border-radius: 1px; background: linear-gradient(to right, var(--green), var(--orange) 70%, var(--purple)); content: ""; }
.trial-step { position: relative; display: grid; gap: 10px; padding-top: 40px; }
.trial-step::before { position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border: 3px solid var(--bg); border-radius: 5px; background: var(--c); box-shadow: 0 0 0 1px var(--c); content: ""; }
.trial-step small { color: var(--muted); font-size: var(--text-small); letter-spacing: .04em; text-transform: uppercase; }
.trial-step p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

.fair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fair-card { display: grid; align-content: start; gap: 10px; padding: 28px; border-radius: 24px; background: var(--tile); }
.fair-card b { font-size: 32px; font-weight: 500; letter-spacing: -.035em; }
.fair-card p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

.replace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.replace h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.032em; }
.replace-list { display: grid; gap: 10px; }
.replace-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px dashed var(--border); border-radius: var(--radius-large); color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.replace-item .app-icon { font-size: 28px; filter: grayscale(1); opacity: .5; }
.replace-item.is-workpunk { border: 1px solid var(--border); color: var(--ink); background: var(--bg); box-shadow: var(--card-resting); text-decoration: none; }
.replace-item.is-workpunk .app-icon { filter: none; opacity: 1; }
.replace-item.is-workpunk span:last-child { margin-left: auto; color: var(--text-2); }

.faq-short { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.faq-short > div:first-child .text-link { margin-top: 20px; }

/* ---- Product ---- */
.feature-nav { position: sticky; top: var(--header-height); z-index: 20; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.feature-nav ul { display: flex; gap: 4px; height: 48px; margin: 0 auto; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: none; }
.feature-nav a { display: inline-flex; align-items: center; height: 100%; padding: 0 12px; color: var(--muted); font-size: var(--text-body); text-decoration: none; white-space: nowrap; transition: color .12s ease; }
.feature-nav a:hover, .feature-nav a[aria-current] { color: var(--ink); }

.feature-row { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 72px; padding: 120px 0; scroll-margin-top: calc(var(--header-height) + 48px); }
.feature-row + .feature-row::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: var(--rule); content: ""; }
.feature-row.is-flipped > :first-child { order: 2; }
.feature-row h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.06; letter-spacing: -.035em; }
.feature-row h2 + p { margin: 20px 0 28px; color: var(--text-2); font-size: 18px; line-height: 1.55; }
.feature-tile { position: relative; min-height: 460px; overflow: hidden; border-radius: 28px; background: var(--tile); }
.feature-tile > * { position: absolute; }
.feature-tile .app-window .timeline-dates, .feature-tile .app-window .timeline-body { grid-template-columns: 150px 1fr; }

.details-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.detail-card { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: 24px; background: var(--tile); }
.detail-card .app-icon { margin-bottom: 18px; font-size: 36px; }
.detail-card p { color: var(--text-2); font-size: 15px; line-height: 1.5; }

.facts-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.facts-strip > div { padding: 28px; border: 1px solid var(--border); border-radius: 24px; }
.facts-strip b { display: block; margin-bottom: 8px; font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.facts-strip p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

@media (max-width: 1100px) {
  .included { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .price-stage, .replace, .faq-short { grid-template-columns: 1fr; }
  .fair, .facts-strip { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; padding: 88px 0; }
  .feature-row.is-flipped > :first-child { order: 0; }
}
@media (max-width: 640px) {
  .block { padding: 88px 0; }
  .plan-card, .calc { padding: 28px; }
  .plan-price b { font-size: 72px; }
  .included, .details-grid { grid-template-columns: 1fr; }
  .trial-track { grid-template-columns: 1fr; gap: 0; }
  .trial-track::before { top: 0; right: auto; bottom: 0; left: 7px; width: 2px; height: auto; background: linear-gradient(var(--green), var(--orange) 70%, var(--purple)); }
  .trial-step { padding: 0 0 32px 40px; }
  .trial-step::before { top: 2px; }
  .feature-tile { min-height: 380px; }
  .feature-tile .app-window .timeline-dates, .feature-tile .app-window .timeline-body { grid-template-columns: 104px 1fr; }
}
