@font-face { font-family: 'Archivo'; src: url('/assets/fonts/archivo.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Besley'; src: url('/assets/fonts/besley.woff2') format('woff2'); font-weight: 900; font-display: swap; }
/* These two contain only the main headings' characters. */
@font-face { font-family: 'Heading HK'; src: url('/assets/fonts/heading-hk.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Heading TC'; src: url('/assets/fonts/heading-tc.woff2') format('woff2'); font-weight: 900; font-display: swap; }
/* Contains one character: 宜. */
@font-face { font-family: 'Seal'; src: url('/assets/fonts/seal.woff2') format('woff2'); font-weight: 900; font-display: swap; }

/* The top of each page is bold coral. Below it, coral is only an accent. As on
   wall calendars, weekdays are green, and weekends and special dates are red. */
:root {
  color-scheme: light;
  --paper: #fff;
  --soft: #f6f8f7;
  --ink: #1c211f;
  --muted: #5a6460;
  --line: #e2e7e4;
  --field-line: #87918c;
  --coral: #fc795e;
  --coral-soft: #fff3ef;
  --coral-line: #fbcfc2;
  --coral-ink: #ad3a21;
  --green-soft: #e7f4ed;
  --green-ink: #1b6348;
  --amber-soft: #fff2cf;
  --amber-ink: #76500a;
  --red: #d0351e;
  --green: #0f5c48;
  --body: 'Archivo', 'PingFang HK', 'Noto Sans HK', 'Microsoft JhengHei', system-ui, sans-serif;
  --display: 'Besley', 'Heading HK', 'Songti TC', 'PMingLiU', serif;
  --gutter: clamp(18px, 4vw, 48px);
  --overlap: clamp(160px, 17vw, 240px);
  --section: clamp(72px, 8vw, 112px);
  --window: 14px;
  --card: 12px;
  --control: 8px;
  --shadow: 0 1px 2px #1c211f0d, 0 24px 48px -28px #1c211f47;
}
:lang(zh-TW) {
  --body: 'Archivo', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', system-ui, sans-serif;
  --display: 'Besley', 'Heading TC', 'Songti TC', 'PMingLiU', serif;
}
:lang(zh-HK) {
  --body: 'Archivo', 'PingFang HK', 'Noto Sans HK', 'Microsoft JhengHei', system-ui, sans-serif;
  --display: 'Besley', 'Heading HK', 'Songti TC', 'PMingLiU', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
}
/* Not a bare :lang(zh), which would also match every element inside headings. */
body:lang(zh), blockquote:lang(zh) { line-height: 1.7; line-break: strict; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset, legend { margin: 0; padding: 0; border: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea { color: inherit; font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
b, strong { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--coral-ink); outline-offset: 3px; }
.site-top :focus-visible, .hero-top :focus-visible { outline-color: var(--ink); }
::selection { background: var(--coral-line); }

.shell { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link {
  position: fixed;
  z-index: 20;
  inset: 10px auto auto 10px;
  translate: 0 -200%;
  padding: 10px 16px;
  border-radius: var(--control);
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { translate: none; }

/* Type */
h1, h2 { font-weight: 600; text-wrap: balance; }
h1 { font: 900 clamp(2.5rem, 4.6vw, 4.125rem)/1.02 var(--display); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.14; letter-spacing: -.028em; }
h1:lang(zh) { font-size: clamp(2.25rem, 4.8vw, 4.25rem); line-height: 1.2; letter-spacing: -.01em; }
h2:lang(zh) { font-size: clamp(1.625rem, 2.8vw, 2.25rem); line-height: 1.35; letter-spacing: .01em; }
h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.clause { display: inline-block; }
.section { padding-top: var(--section); }
.band { margin-top: var(--section); padding-block: var(--section); background: var(--soft); }
.intro { max-width: 680px; }
.intro p { margin-top: 14px; color: var(--muted); font-size: clamp(1.0625rem, 1.3vw, 1.125rem); text-wrap: pretty; }
.intro .text-link { margin-top: 12px; }
.intro .soon { margin-top: 12px; }
.intro .agent-name { margin: 0 0 16px; color: var(--ink); font-size: 1rem; }
.intro .agent-name .soon { margin: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: var(--control);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.button:hover { background: #39413d; }
.button-quiet { border-color: #fff; background: #fff; color: var(--ink); }
.button-quiet:hover { border-color: var(--coral-soft); background: var(--coral-soft); }
.button-coral { gap: 7px; border-color: var(--coral); background: var(--coral); color: var(--ink); }
.button-coral:hover { border-color: #ff9079; background: #ff9079; }
.button-small { min-height: 40px; padding: 8px 14px; font-size: .9375rem; }
.text-link {
  display: inline-block;
  padding: 11px 0;
  color: var(--coral-ink);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header and footer */
/* Above the demo window, so the language menu can cover it. */
.site-top { position: relative; z-index: 12; background: var(--coral); }
.site-top .wordmark img { border-radius: 8px; box-shadow: 0 0 0 2px var(--ink); }
.site-header {
  display: grid;
  position: relative;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px clamp(12px, 2vw, 28px);
  min-height: 76px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
}
.site-links { display: flex; flex-wrap: wrap; gap: 4px; }
.site-links > a, .menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: var(--control);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.site-links > a:hover, .site-links > a[aria-current], .menu summary:hover, .menu[open] summary, .menu:has([aria-current]) summary { background: #ffffff59; }
.menu summary { gap: 6px; list-style: none; white-space: nowrap; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .icon { width: 14px; stroke-width: 2; transition: rotate .15s; }
.menu[open] summary .icon { rotate: 180deg; }
.menu-panel { position: absolute; z-index: 1; inset: calc(100% - 8px) auto auto 0; width: min(100%, 800px); padding: 20px; border: 1px solid var(--line); border-radius: var(--window); background: #fff; box-shadow: 0 2px 6px #1c211f1f, 0 24px 48px -20px #1c211f8c; }
.menu-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.menu-title { padding: 4px 10px 6px; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.menu-panel a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; padding: 8px 10px; border-radius: var(--control); font-size: .9375rem; font-weight: 500; line-height: 1.3; text-decoration: none; }
.menu-panel a .icon { flex: none; width: 20px; color: var(--coral-ink); }
.menu-panel a:hover { background: var(--soft); }
.menu-panel a[aria-current] { background: var(--coral-soft); color: var(--coral-ink); }
.menu-more { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.menu-more a { color: var(--coral-ink); font-weight: 600; }
.site-actions { display: flex; align-items: center; gap: 6px; }
.sign-in { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; border-radius: var(--control); font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sign-in:hover { background: #ffffff59; }
.languages { position: relative; font-size: .9375rem; }
.languages summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: var(--control);
  background: #ffffff59;
  font-weight: 600;
  line-height: 1.2;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
}
.languages summary::-webkit-details-marker { display: none; }
.languages summary:hover, .languages[open] summary { background: #ffffff8c; }
.languages .icon { flex: none; width: 18px; }
.languages .icon:last-child { width: 14px; stroke-width: 2; transition: rotate .15s; }
.languages[open] .icon:last-child { rotate: 180deg; }
.languages ul { position: absolute; inset: calc(100% + 8px) 0 auto auto; min-width: 200px; padding: 6px; border: 1px solid var(--line); border-radius: var(--card); background: #fff; box-shadow: 0 2px 6px #1c211f1f, 0 24px 48px -20px #1c211f8c; }
.languages a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--control); font-family: var(--body); text-decoration: none; white-space: nowrap; }
.languages a:hover { background: var(--soft); }
.languages a[aria-current] { background: var(--coral-soft); color: var(--coral-ink); font-weight: 600; }
.site-footer { margin-top: var(--section); padding-block: clamp(40px, 5vw, 64px) 32px; border-top: 1px solid var(--line); background: var(--soft); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px clamp(32px, 6vw, 96px); }
.footer-brand p { max-width: 34ch; margin-top: 8px; color: var(--muted); font-size: .9375rem; text-wrap: pretty; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
.footer-title { padding-block: 10px 4px; font-size: .9375rem; font-weight: 600; }
.footer-links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--muted); font-size: .9375rem; text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-links a[aria-current] { color: var(--coral-ink); font-weight: 600; }
.footer-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 40px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }

/* Hero. The demo overlaps the bottom of the coral. */
.hero-top { padding-bottom: var(--overlap); background: var(--coral); }
.hero-top + section { position: relative; margin-top: calc(-1 * var(--overlap)); }
.hero-top + section > .window { box-shadow: 0 2px 6px #1c211f1f, 0 36px 64px -28px #1c211f8c; }
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(290px, 1fr);
  align-items: end;
  gap: 22px clamp(28px, 4vw, 56px);
  padding-block: clamp(24px, 3.2vw, 48px) clamp(26px, 2.8vw, 40px);
}
.hero-copy-home h1 { font-size: clamp(2.875rem, 6.3vw, 5.625rem); }
.hero-copy-home h1:lang(zh) { font-size: clamp(3.25rem, 12vw - 1.5rem, 8.75rem); line-height: 1.15; white-space: nowrap; }
.hero-side { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); text-wrap: pretty; }
.tagline { margin-top: clamp(20px, 2.4vw, 32px); font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.tagline:lang(zh) { margin-top: 14px; line-height: 1.45; letter-spacing: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-soon { margin-top: 12px; font-size: .9375rem; font-weight: 600; }

/* Shaped like the HitPost mark. */
.seal {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: .36em;
  font-family: 'Seal', serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}
h1 .seal { width: 1.2em; height: 1.2em; margin-inline: .1em; border-radius: .26em; background: var(--ink); color: var(--coral); font-size: .84em; vertical-align: -.1em; }

/* Windows and cards */
.window { overflow: hidden; border: 1px solid var(--line); border-radius: var(--window); background: #fff; box-shadow: var(--shadow); }
.window-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 60px; padding: 8px 18px; border-bottom: 1px solid var(--line); }
.window-status { color: var(--muted); font-size: .875rem; }
.range { margin-inline-end: auto; color: var(--muted); font-size: .9375rem; }
.demo-note { margin-top: 14px; color: var(--muted); font-size: .875rem; text-align: center; text-wrap: balance; }
.card { border: 1px solid var(--line); border-radius: var(--card); background: #fff; }
.card { padding: clamp(20px, 2.4vw, 28px); }
.photo { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--line); }
.profile { flex: none; width: 36px; border-radius: 50%; }
.channel { flex: none; width: 18px; height: 18px; border-radius: 5px; object-fit: cover; }
.icon { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.state { width: fit-content; padding: 2px 9px; border-radius: 99px; font-size: .8125rem; font-weight: 600; line-height: 1.6; }
.state[data-state='scheduled'] { background: var(--green-soft); color: var(--green-ink); }
.state[data-state='approved'] { background: var(--green-soft); color: var(--green-ink); }
.state[data-state='review'] { background: var(--coral-soft); color: var(--coral-ink); }
.state[data-state='draft'] { background: var(--amber-soft); color: var(--amber-ink); }
.account { display: flex; align-items: center; gap: 8px; font-size: .9375rem; }
.sample { margin-inline-start: auto; color: var(--muted); font-size: .8125rem; }
.workspace { display: flex; align-items: center; gap: 10px; line-height: 1.35; }

/* App window */
.app { display: grid; grid-template-columns: 84px minmax(0, 1fr); }
.app-main { min-width: 0; }
.rail { display: grid; align-content: start; justify-items: center; gap: 8px; padding: 14px 8px; background: var(--ink); color: #c9d1cd; font-size: .6875rem; font-weight: 500; cursor: default; }
.rail img { margin-bottom: 10px; border-radius: 9px; }
.rail span { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 9px 2px 8px; border-radius: 10px; line-height: 1.3; text-align: center; }
.rail .is-active { background: #fff; color: var(--ink); }
.views { display: flex; padding: 3px; border-radius: var(--control); background: var(--soft); font-size: .875rem; font-weight: 500; }
.views > * { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding-inline: 12px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.views a:hover { color: var(--ink); }
.views [aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #1c211f26; }

/* AI agent */
.agent-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.agent-name img { border-radius: 7px; }
.soon { display: inline-block; padding: 2px 9px; border: 1px solid var(--coral-line); border-radius: 99px; background: #fff; color: var(--coral-ink); font-size: .75rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.bubble { width: fit-content; padding: 9px 13px 10px; border: 1px solid var(--line); border-radius: 4px 14px 14px; background: #fff; }
.bubble-ask { margin-inline-start: auto; border-color: var(--coral-line); border-radius: 14px 4px 14px 14px; background: var(--coral-soft); }

/* Week planner */
.planner { display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.agent { display: grid; align-content: start; gap: 12px; padding: 16px; border-right: 1px solid var(--line); background: var(--soft); font-size: .9375rem; line-height: 1.45; }
.agent:lang(zh) { line-height: 1.6; }
.agent .button { margin-top: 4px; }
.hint-touch { display: none; }
@media (pointer: coarse) {
  .hint-mouse { display: none; }
  .hint-touch { display: inline; }
}
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day { min-width: 0; padding: 10px 7px 16px; transition: background .15s; }
.day + .day { border-left: 1px solid var(--line); }
.day.is-target { background: var(--coral-soft); }
.pad { position: relative; perspective: 500px; }

.leaf {
  display: block;
  position: relative;
  container-type: inline-size;
  padding: 14px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  --print: var(--green);
  background: #fff;
  text-align: center;
  box-shadow: 0 3px 0 -1px #fff, 0 3px 0 0 var(--line);
}
/* The binding strip and its two holes. */
.leaf::before {
  content: '';
  position: absolute;
  inset: -1px -1px auto;
  height: 8px;
  border-radius: 9px 9px 0 0;
  background:
    radial-gradient(circle at 30% 50%, #fff 1.6px, #0000 2px),
    radial-gradient(circle at 70% 50%, #fff 1.6px, #0000 2px),
    var(--print);
}
.leaf.is-weekend, .date-tab .leaf, .date-plan .leaf { --print: var(--red); }
.leaf-head { display: flex; justify-content: space-between; gap: 4px; color: var(--muted); font-size: min(.75rem, 18cqi); line-height: 1.5; white-space: nowrap; }
.leaf-number { display: block; margin-block: 3px 7px; color: var(--print); font: 900 min(3.25rem, 64cqi)/1 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.leaf-good { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 22px; color: var(--muted); font-size: .75rem; font-weight: 500; line-height: 1.25; }
.leaf-good > [data-good] { min-width: 0; }
.leaf .seal { background: var(--print); color: #fff; }
.leaf.is-active .leaf-good { color: var(--ink); }
.leaf.is-torn {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  transform-origin: 50% 0;
  animation: turn .42s cubic-bezier(.4, 0, .7, .4) forwards;
  pointer-events: none;
}
@keyframes turn { to { transform: rotateX(82deg); opacity: 0; } }

.events { display: grid; align-content: start; gap: 8px; min-height: 198px; margin-top: 14px; }
.event {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 2px #1c211f12;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow .15s, border-color .15s;
}
.event[data-state='draft'] { border-style: dashed; border-color: var(--field-line); }
.event:hover { border-color: var(--coral); box-shadow: 0 8px 16px -8px #1c211f33; }
.event + .event .photo { display: none; }
.event-text { display: grid; justify-items: start; gap: 4px; padding: 8px 9px 9px; font-size: .8125rem; line-height: 1.35; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; color: var(--muted); font-size: .75rem; }
.event-meta .channel { width: 14px; height: 14px; border-radius: 4px; }
.event .state { padding: 1px 8px; font-size: .6875rem; }
.event-moves { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.event-moves button { min-height: 30px; border: 0; background: none; color: var(--muted); line-height: 1; }
.event-moves button + button { border-left: 1px solid var(--line); }
.event-moves button:hover:not(:disabled) { background: var(--coral-soft); color: var(--coral-ink); }
.event-moves button:focus-visible { outline-offset: -2px; }
.event-moves button:disabled { color: #c3cbc7; cursor: default; }
.is-dragging { z-index: 10 !important; rotate: 1.5deg; pointer-events: none; box-shadow: 0 20px 32px -12px #1c211f59 !important; }

/* Time calculator, which is also a .split */
.time { margin-top: clamp(28px, 3.4vw, 44px); }
.split.time { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.time-how { color: var(--muted); }
.time-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 16px; }
.time-field label { font-weight: 600; }
.time-field b { color: var(--coral-ink); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.time-field input { grid-column: 1 / -1; }
.time output { grid-template-columns: 1.25fr 1fr; align-content: center; align-items: end; gap: 20px; }
.time output > span { display: grid; gap: 10px; font-weight: 600; line-height: 1.4; }
.time output b { margin-inline-end: .08em; font: 900 clamp(3.25rem, 6.4vw, 5.5rem)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.time-total b { color: var(--green); }
.time-thinking b { color: var(--red); }
/* Without JavaScript the sliders don't work, so just show the example. */
@media (scripting: none) {
  .time-how, .time-field input { display: none; }
}

/* Who does what. Yours are dark, and AI's are coral. */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 4.2fr) auto minmax(0, 1fr); gap: clamp(8px, 1vw, 14px); margin-top: clamp(28px, 3.4vw, 44px); }
.flow > div { display: grid; grid-template-rows: auto 1fr; align-items: start; gap: 26px; padding: 24px 14px 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.flow > .flow-ai { border-color: var(--coral-line); background: var(--coral-soft); box-shadow: var(--shadow); }
.flow-who, .flow .agent-name { align-items: center; justify-content: center; min-height: 28px; font-weight: 600; text-align: center; }
.flow ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow-step { display: grid; position: relative; align-content: start; justify-items: center; gap: 14px; padding-inline: 6px; font-weight: 600; line-height: 1.4; text-align: center; text-wrap: balance; }
.flow-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--ink); color: #fff; }
.flow-icon .icon { width: 30px; }
.flow-ai .flow-icon { border: 1px solid var(--coral-line); background: #fff; color: var(--coral-ink); }
.flow li + li::before { content: ''; position: absolute; top: 33px; inset-inline-end: calc(50% + 42px); width: calc(100% - 84px); border-top: 2px solid var(--coral-line); }

/* Message and draft */
.merge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 36px);
  margin-top: clamp(28px, 3.4vw, 44px);
  padding: clamp(18px, 3.4vw, 44px);
  border-radius: 20px;
  background: var(--soft);
}
.merge > div { display: grid; grid-template-rows: auto 1fr; justify-self: center; gap: 14px; width: min(100%, 380px); }
.merge-arrow { display: grid; place-items: center; align-self: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--coral-ink); }
.merge .chat, .merge .post { box-shadow: var(--shadow); }
.chat { display: grid; align-content: start; align-self: start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--window); background: #fff; }
.chat .agent-name { margin: -2px 0 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat .bubble-ask { width: min(100%, 270px); padding: 6px; }
.chat .photo { border-radius: 10px 2px 8px 8px; }
.chat .bubble-ask p { padding: 8px 8px 4px; }

/* Post previews, each laid out like its platform. They use the device's own
   font, as the apps do. */
.post-card { display: grid; align-content: start; gap: 10px; width: 100%; max-width: 380px; }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .9375rem; }
.post { overflow: hidden; border: 1px solid #dbdfe3; border-radius: var(--card); background: #fff; color: #0f1419; font-size: .875rem; line-height: 1.45; }
.post, .post p, .post-text { font-family: system-ui, var(--body); }
.post-text { white-space: pre-wrap; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head > .icon { flex: none; width: 22px; margin-inline-start: auto; }
.post-time { color: #65696e; font-size: .8125rem; white-space: nowrap; }
.post-icons { display: flex; align-items: center; gap: 14px; }
.post-icons .icon { width: 23px; }
.post-instagram { padding-bottom: 13px; }
.post-instagram > p { padding-inline: 12px; }
.post-instagram .post-head { padding-block: 10px; }
.post-instagram .profile { width: 32px; margin: 3px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d62976; }
.post-instagram .post-icons { padding-block: 10px 8px; }
.post-instagram .post-icons :last-child { margin-inline-start: auto; }
.post-instagram .post-time { margin-top: 4px; }
.post-threads { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 14px 12px 12px; }
.post-threads .profile { width: 32px; }
.post-threads .post-head { gap: 5px; min-height: 22px; }
.post-threads .post-head .icon { width: 18px; }
.post-threads .photo { margin-block: 9px 10px; border: 1px solid #00000014; border-radius: 10px; }
.post-threads .post-icons .icon { width: 20px; }
.post-facebook > p, .post-facebook .post-head { padding: 10px 12px; }
.post-facebook .post-head { padding-bottom: 0; line-height: 1.3; }
.post-facebook .profile { width: 38px; }
.post-facebook .post-time { display: flex; align-items: center; gap: 4px; }
.post-facebook .post-time .icon { width: 13px; }
.post-facebook .post-icons { flex-wrap: wrap; justify-content: space-around; gap: 4px; padding-inline: 8px; color: #65696e; font-size: .75rem; font-weight: 600; }
.post-facebook .post-icons span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.post-facebook .post-icons .icon { width: 17px; }

/* Captions */
.voice { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); align-items: center; gap: clamp(28px, 4.6vw, 72px); }
.voice-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); }
.voice figcaption { color: var(--muted); font-size: .9375rem; }
.voice blockquote { margin-top: 12px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); font-weight: 600; text-wrap: pretty; }
.voice .card:first-child { background: none; }
.voice .card:first-child blockquote { color: var(--muted); font-weight: 400; }
.voice .card:last-child { border-color: var(--coral-line); box-shadow: var(--shadow); }

/* Approval */
.approval { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); align-items: center; gap: clamp(28px, 4.6vw, 72px); }
.approval figure { padding-bottom: 34px; }
.approval-plan { padding: clamp(18px, 2.4vw, 28px); }
.plan { margin-top: 10px; }
.plan li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto 5.75rem; align-items: center; gap: 4px 16px; padding-block: 10px; font-size: .9375rem; }
.plan li + li { border-top: 1px solid var(--line); }
.plan .photo { width: 52px; border-radius: 8px; }
.plan span:not(.state), .plan time { color: var(--muted); font-variant-numeric: tabular-nums; }
.plan .state { justify-self: end; }
.plan span b { color: var(--ink); }
.comment-pop {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 88%;
  margin: -26px 22px -34px auto;
  padding: 12px 16px;
  border: 1px solid var(--coral-line);
  border-radius: 14px 14px 4px;
  background: var(--coral-soft);
  font-size: .9375rem;
  box-shadow: var(--shadow);
}
.comment-pop strong { margin-inline-end: 6px; }
.comment-pop + .demo-note { margin-top: 52px; }

/* Local dates */
.dates { display: grid; grid-template-columns: minmax(0, 1fr) 428px; }
.date-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 20px 12px; padding: clamp(14px, 2vw, 24px); }
.date-tab { display: grid; align-content: start; gap: 3px; padding: 12px 12px 14px; border: 1px solid #0000; border-radius: var(--card); background: none; color: var(--muted); font-size: .875rem; line-height: 1.4; text-align: center; }
.date-tab b { margin-top: 10px; color: var(--ink); font-size: 1rem; }
.date-tab .leaf-number { margin-block: 10px 14px; font-size: min(5rem, 64cqi); }
.date-tab:hover { background: var(--soft); }
.date-tab[aria-selected='true'] { border-color: var(--coral); background: var(--coral-soft); }
.date-posts { display: grid; align-items: center; justify-items: center; padding: 24px; border-left: 1px solid var(--line); background: var(--soft); }
.date-posts > * { width: min(100%, 380px); }
/* Without JavaScript the tabs don't work, so show every post. */
@media (scripting: none) {
  .date-posts { gap: 32px; }
  .date-posts > [hidden] { display: block !important; }
}

/* FAQ and closing */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(24px, 3vw, 36px); }
.faq dt { font-size: 1.0625rem; font-weight: 600; line-height: 1.45; text-wrap: balance; }
.faq dd { margin-top: 8px; color: var(--muted); text-wrap: pretty; }
.closing { display: grid; justify-items: center; gap: 22px; margin-top: var(--section); padding: clamp(40px, 5vw, 64px) 24px; border-radius: 20px; background: var(--coral-soft); text-align: center; }
.closing .leaf { width: 148px; }
.closing p { margin-top: -10px; font-size: .9375rem; font-weight: 600; }

/* Features, shared by the menu pages and the homepage */
.feature-window { padding: clamp(16px, 2.4vw, 32px); }
.band .feature-window { margin-top: clamp(28px, 3.4vw, 44px); }
.feature-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.feature-group { padding-inline: 12px; font-size: 1.375rem; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.feature-group:lang(zh) { font-size: 1.375rem; letter-spacing: 0; }
.feature-map > div > p { padding-inline: 12px; color: var(--muted); font-size: .9375rem; }
.feature-map ul { display: grid; gap: 4px; margin-top: 14px; }
.feature-map li a, .related a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 12px; border-radius: var(--card); text-decoration: none; }
.feature-map li a:hover { background: var(--soft); }
.feature-map small, .related small { display: block; margin-top: 2px; color: var(--muted); font-size: .9375rem; line-height: 1.45; text-wrap: pretty; }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--coral-soft); color: var(--coral-ink); }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(24px, 3vw, 36px); }
.points .card { display: grid; align-content: start; justify-items: start; gap: 8px; }
.points h3 { font-size: 1.1875rem; }
.points p, .steps p { color: var(--muted); text-wrap: pretty; }
/* Five cards fill two rows: one wide and one narrow, then three. */
.points-5 > :first-child { grid-column: span 2; padding: clamp(24px, 3vw, 40px); border-color: var(--coral-line); background: var(--coral-soft); }
.points-5 > :first-child h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -.015em; }
.points-5 > :first-child p { max-width: 46ch; color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(24px, 3vw, 36px); counter-reset: step; }
.steps .card { counter-increment: step; }
.steps .card::before { content: counter(step); display: block; margin-bottom: 14px; color: var(--green); font: 900 2.75rem/1 var(--display); }
.steps .card:last-child::before { color: var(--red); }
.steps p { margin-top: 6px; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(20px, 2.4vw, 28px); }
.related .card { height: 100%; padding: 20px; transition: border-color .15s; }
.related .card:hover, .article-cards .card:hover { border-color: var(--coral); }

/* Feature previews */
.window-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); }
.split-wide { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.split > * { display: grid; align-content: start; gap: 16px; min-width: 0; padding: clamp(18px, 2.4vw, 32px); }
.split-side { background: var(--soft); }
.split > * + * { border-left: 1px solid var(--line); }
.guide { display: grid; gap: 14px; }
.guide dt { color: var(--muted); font-size: .875rem; }
.guide dd { margin-top: 2px; font-weight: 500; }
.guide .thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.thumbs .photo { border-radius: 8px; }
.options { display: grid; gap: 12px; }
.options .card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 18px 20px; font-size: 1.0625rem; }
.options .is-chosen { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-line); }
.plan-people li { grid-template-columns: 52px minmax(0, 1fr) auto 4rem 6.5rem; }
.client-list, .people, .messages, .ideas { display: grid; gap: 6px; }
.client-list li, .messages li { padding: 11px 14px; border: 1px solid #0000; border-radius: var(--control); }
.client-list .is-active, .messages .is-active { border-color: var(--coral); background: #fff; font-weight: 600; }
.people li { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: .9375rem; }
.people li > :last-child { margin-inline-start: auto; color: var(--muted); }
.initial { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); font-size: .875rem; font-weight: 600; }
.mini-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.mini-week > * { display: grid; align-content: start; gap: 8px; min-width: 0; }
.mini-scroll { position: relative; }
.mini-post { display: grid; gap: 6px; padding: 9px; border: 1px solid var(--coral-line); border-radius: 9px; background: var(--coral-soft); font-size: .8125rem; line-height: 1.35; }
.split .people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.split .people li { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--control); }
.split .leaf-good, .date-plan .leaf-good, .cover .leaf-good { display: none; }
.messages li { display: flex; align-items: center; gap: 10px; }
.inbox-thread .bubble { margin-block: 4px 8px; }
.suggestion { display: grid; gap: 10px; border-color: var(--coral-line); box-shadow: var(--shadow); }
.ranges { display: flex; flex-wrap: wrap; gap: 6px; margin-inline-start: auto; font-size: .8125rem; font-weight: 500; }
.ranges > span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; }
.metrics > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: center; gap: 16px; padding-block: 11px; }
.metrics > div + div { border-top: 1px solid var(--line); }
.metrics dt { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.metrics dd { color: var(--muted); }
.ideas li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--control); background: #fff; }
.reuse { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
.reuse .post-card { margin-inline: auto; }
.repeats li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 18px; padding-block: 11px; font-size: .9375rem; }
.repeats li + li { border-top: 1px solid var(--line); }
.repeats li > span:not(.state, :first-child) { color: var(--muted); font-variant-numeric: tabular-nums; }
.about-week { padding: clamp(16px, 2.4vw, 32px); }

/* Channels */
.channel-window { display: grid; gap: 28px; padding: clamp(18px, 2.6vw, 36px); }
.channel-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.channel-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 68px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--card); }
.channel-list .channel { width: 32px; height: 32px; border-radius: 8px; }
.channel-list .soon { margin-inline-start: auto; }

/* Pricing */
.plan-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan-card { display: flex; position: relative; flex-direction: column; gap: 6px; padding: 28px 22px 24px; box-shadow: var(--shadow); }
.plan-card h2 { font-size: 1.375rem; line-height: 1.3; letter-spacing: -.02em; }
.plan-card > p { color: var(--muted); font-size: .9375rem; }
.plan-card .button { width: 100%; margin-top: 10px; white-space: normal; text-align: center; }
.plan-card.is-featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow); }
.plan-card .plan-flag { position: absolute; inset: -14px 14px auto; width: fit-content; max-width: calc(100% - 28px); padding: 4px 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 600; line-height: 1.5; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 10px; }
.price b { color: var(--ink); font: 900 clamp(2rem, 3vw, 2.75rem)/1.1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.price small { margin-inline-end: 3px; font: 600 1.0625rem/1 var(--body); letter-spacing: 0; }
.ticks { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9375rem; line-height: 1.45; }
/* Positioned, so hidden labels inside can't widen the page. */
.table-wrap { position: relative; margin-top: clamp(20px, 2.4vw, 28px); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
th, td { padding: 14px 16px; text-align: start; vertical-align: top; }
thead { background: var(--soft); }
tbody tr { border-top: 1px solid var(--line); }
th { font-weight: 600; }
tbody th { font-weight: 500; }
.compare { min-width: 680px; table-layout: fixed; }
.compare th:first-child { width: 38%; }
.compare :is(th, td):not(:first-child) { text-align: center; font-variant-numeric: tabular-nums; }
.tick { display: inline-grid; place-items: center; color: var(--green-ink); }
.tick .icon { stroke-width: 2.2; }
.draft { width: fit-content; margin: 16px auto 0; padding: 10px 16px; border-radius: var(--control); background: var(--amber-soft); color: var(--amber-ink); font-size: .9375rem; font-weight: 600; }

/* Help, policies and articles */
.help-contact .split-main { align-content: center; justify-items: start; }
.help-contact p { max-width: 60ch; }
.help-contact .button { overflow-wrap: anywhere; white-space: normal; }
.quick-links a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-weight: 500; text-decoration: none; }
.quick-links li + li { border-top: 1px solid var(--line); }
.quick-links .icon { flex: none; color: var(--coral-ink); }
.quick-links a:hover { color: var(--coral-ink); }
.faq-three, .faq:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq a, .help-contact p a, .prose a:not(.button) { color: var(--coral-ink); font-weight: 500; text-underline-offset: 3px; }
.hero-plain { padding-bottom: 0; }
.hero-plain .shell { max-width: 1120px; padding-block: clamp(24px, 4vw, 56px) clamp(32px, 4.4vw, 64px); }
.hero-plain p { max-width: 60ch; margin-top: 14px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); text-wrap: pretty; }
.hero-plain .doc-date { margin: 0 0 14px; font-size: .9375rem; font-weight: 600; }
.hero-plain .doc-date a { text-underline-offset: 3px; }
.plain-title, .plain-title:lang(zh) { max-width: 22em; font: 700 clamp(2rem, 4vw, 3.25rem)/1.12 var(--body); letter-spacing: -.035em; }
.plain-title:lang(zh) { line-height: 1.3; letter-spacing: 0; }
.doc { display: grid; grid-template-columns: 250px minmax(0, 720px); justify-content: space-between; gap: 40px clamp(32px, 6vw, 96px); max-width: 1120px; padding-top: clamp(40px, 5vw, 72px); }
.toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; font-size: .9375rem; }
.toc ol { margin-top: 8px; }
.toc a { display: flex; align-items: center; min-height: 36px; padding-block: 5px; color: var(--muted); line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--coral-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose { font-size: 1.0625rem; }
.prose-center { max-width: 720px; padding-top: var(--section); }
.prose section { scroll-margin-top: 24px; }
.prose section + section { margin-top: clamp(36px, 4vw, 52px); }
.prose h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.25; letter-spacing: -.02em; }
.prose h2:lang(zh) { line-height: 1.45; letter-spacing: 0; }
.prose section > * + * { margin-top: 14px; }
.prose section > ul { padding-inline-start: 1.25em; list-style: disc; }
.prose section > ol:not(.date-plan) { padding-inline-start: 1.5em; list-style: decimal; }
.prose section > :is(ul, ol):not(.date-plan) li + li { margin-top: 8px; }
.prose li::marker { color: var(--coral-ink); }
.prose .draft { margin: 0 0 20px; }
.doc-date { color: var(--muted); font-size: .9375rem; }
.hero-plain .doc-date { color: inherit; }
.prose > .doc-date { margin-bottom: 28px; }
.prose code { font-size: .875em; }
.prose table { min-width: 30rem; }
.prose td:last-child { white-space: nowrap; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair .card { padding: 20px; }
.pair .card:first-child { background: var(--soft); color: var(--muted); }
.pair .card:last-child { border-color: var(--coral-line); background: var(--coral-soft); }
.pair figcaption { font-size: .875rem; font-weight: 600; }
.pair blockquote { margin-top: 8px; }
.date-plan { display: grid; gap: 10px; }
.date-plan li { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 4px 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--card); }
.date-plan h3 { font-size: 1.125rem; }
.date-plan p { margin-top: 2px; }
.date-plan time { font-weight: 600; }
.article-cta { margin-top: clamp(32px, 4vw, 48px); }
.article-cta .button, .prose section .button { white-space: normal; text-align: center; }
.article-agent { display: grid; justify-items: start; gap: 10px; margin-top: clamp(32px, 4vw, 48px); border-color: var(--coral-line); background: var(--coral-soft); }
.article-agent .text-link { margin-block: -6px -10px; }
.cover { display: grid; position: relative; overflow: hidden; place-items: center; min-height: 236px; padding: 20px 20px 56px; border-radius: var(--control); background: var(--soft); color: var(--ink); line-height: 1.4; }
.article-cards li:nth-child(odd) .cover { background: var(--coral-soft); }
.cover-good { display: flex; position: absolute; inset: auto auto 14px 16px; align-items: center; gap: 7px; font-size: .875rem; font-weight: 500; }
.cover-good .seal { background: var(--ink); color: #fff; }
.cover-leaves { display: grid; grid-auto-columns: minmax(0, 116px); grid-auto-flow: column; align-items: center; justify-content: center; gap: 14px; width: 100%; }
.cover-leaves > span:first-child { rotate: -4deg; }
.cover-leaves > span:last-child { rotate: 4deg; }
.cover-leaves .leaf { --print: var(--red); }
.cover-repeat { grid-auto-columns: auto; grid-template-columns: minmax(0, 116px) auto minmax(0, 116px); }
.cover-repeat > .icon { width: 34px; color: var(--coral-ink); }
.cover-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; width: 100%; }
.cover-week > span { display: grid; gap: 8px; color: var(--green); font-size: .875rem; text-align: center; }
.cover-week > :is(:first-child, :last-child) { color: var(--red); }
.cover-week .photo, .cover-week i { aspect-ratio: 3 / 4; border-radius: 8px; }
.cover-week i { display: block; border: 1px dashed var(--field-line); }
.cover-words { display: grid; gap: 10px; width: min(100%, 380px); }
.cover-words > * { padding: 10px 14px; border-radius: 4px 14px 14px; background: #fff; font-weight: 400; text-decoration: none; }
.cover-words s { color: var(--muted); text-decoration: line-through; }
.cover-words b { justify-self: end; border-radius: 14px 4px 14px 14px; background: var(--ink); color: #fff; font-weight: 600; }
.cover-list { display: grid; gap: 8px; width: min(100%, 380px); }
.cover-list > span { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--control); background: #fff; font-size: .9375rem; }
.cover-list .icon { flex: none; color: var(--green-ink); }
.article-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(24px, 3vw, 36px); }
.article-cards .card { display: grid; grid-template-rows: auto 1fr; gap: 18px; height: 100%; padding: 14px 14px 20px; text-decoration: none; transition: border-color .15s; }
.article-text { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding-inline: 8px; color: var(--muted); }
.article-text :is(h2, h3) { color: var(--ink); font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.article-text :is(h2, h3):lang(zh) { line-height: 1.45; letter-spacing: 0; }
.read-more { color: var(--coral-ink); }
.blog-list .article-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 0; }
.blog-list li { grid-column: span 2; }
.blog-list li:nth-child(-n + 2) { grid-column: span 3; }
.blog-list .card { box-shadow: var(--shadow); }

/* Forms */
input:not([type='radio'], [type='range']), textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--field-line);
  border-radius: var(--control);
  background: #fff;
}
input[type='range'] { width: 100%; min-height: 44px; margin: 0; accent-color: var(--coral-ink); cursor: pointer; }
textarea { display: block; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline-offset: 0; }
fieldset input[type='radio'] { position: absolute; opacity: 0; pointer-events: none; }
fieldset label:has(:focus-visible) { outline: 2px solid var(--coral-ink); outline-offset: 2px; }
.field-label, .composer legend, .board-detail label, .comment-form label { font-size: .9375rem; font-weight: 600; }
.form-note { color: var(--muted); font-size: .875rem; }
.form-error { color: var(--coral-ink); font-size: .9375rem; font-weight: 600; }
/* Out of the layout while empty, but still there for screen readers. */
.form-error:empty, .form-status:empty { position: absolute; }
.form-status { font-size: .9375rem; font-weight: 500; }

/* Agent demo */
.composer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); }
.composer-form { display: grid; align-content: start; gap: 10px; padding: clamp(16px, 2vw, 24px); border-right: 1px solid var(--line); }
.composer fieldset { margin-top: 6px; }
.composer legend { margin-bottom: 8px; }
.composer .field-label { margin-top: 6px; }
.composer-main { display: grid; align-content: start; min-width: 0; background: var(--soft); }
.composer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-height: 80px; padding: 0 clamp(16px, 2vw, 24px) 16px; }
.composer-actions .form-status { flex: 1 1 220px; }
.request { font-weight: 500; }
.target { display: flex; position: relative; align-items: center; gap: 9px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--control); font-size: .9375rem; line-height: 1.35; cursor: pointer; }
.target + .target { margin-top: 6px; }
.target:hover { border-color: var(--field-line); }
.target:has(:checked) { border-color: var(--coral); background: var(--coral-soft); }
.target small { margin-inline-start: auto; color: var(--muted); font-size: .8125rem; text-align: end; }
.composer-previews { display: grid; grid-template-columns: repeat(3, minmax(13rem, 1fr)); align-items: start; gap: 14px; padding: clamp(16px, 2vw, 24px); overflow-x: auto; }
.composer-previews .post { transition: border-color .15s, box-shadow .15s; }
.composer-previews .is-active .post { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-line); }

/* Calendar */
/* Tall enough for every preview, so the calendar doesn't move under the
   pointer when the selected post changes. */
.calendar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 52rem; }
.board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: minmax(112px, 1fr); }
.board > * { --day: var(--green); }
.board > :nth-child(7n), .board > :nth-child(7n + 1) { --day: var(--red); }
.board-weekday { padding: 10px; color: var(--day); font-size: .8125rem; font-weight: 500; text-align: center; }
.cell { min-width: 0; padding: 7px; border-top: 1px solid var(--line); transition: background .15s; }
.cell:not(:nth-child(7n + 1)) { border-left: 1px solid var(--line); }
.cell.is-target { background: var(--coral-soft); }
.cell-number { display: block; margin: 1px 3px 6px; color: var(--day); font-size: .8125rem; font-weight: 500; line-height: 1.4; }
.cell-posts { display: grid; gap: 4px; }
.chip {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--coral-line);
  border-radius: 8px;
  background: var(--coral-soft);
  text-align: start;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.chip:hover { border-color: var(--coral); }
.chip .photo { flex: none; width: 34px; border-radius: 5px; }
.chip-text { display: grid; min-width: 0; font-size: .75rem; line-height: 1.35; }
.chip-text small { color: var(--muted); font-size: .6875rem; }
.chip[data-state='draft'] { border-style: dashed; border-color: var(--field-line); background: #fff; }
.chip[aria-pressed='true'] { border-style: solid; border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral-line); }
.board-detail { display: grid; align-content: start; gap: 12px; padding: 20px; border-left: 1px solid var(--line); background: var(--soft); }
.board-post { display: grid; gap: 8px; }
@media (scripting: none) {
  .calendar { align-items: start; }
  .board-post[hidden] { display: grid !important; }
}
.board-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.25rem, 1fr)); gap: 10px; }
.board-fields input { padding-inline: 9px; }
.board-detail h2 { font-size: 1.125rem; line-height: 1.4; letter-spacing: -.01em; }
.board-detail label, .comment-form label { display: grid; gap: 5px; }
.board-detail input, .comment-form input, .comment-form textarea { font-weight: 400; }
.capture { margin-top: clamp(28px, 3.4vw, 44px); }
.capture img { width: 100%; border: 1px solid var(--line); border-radius: var(--window); box-shadow: var(--shadow); }
.capture figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; margin-top: 8px; color: var(--muted); font-size: .9375rem; }

/* Preview and comments */
.review { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: start; gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(28px, 3.4vw, 44px); }
.review .post-card { margin-inline: auto; }
.comments { display: grid; justify-items: start; gap: 10px; margin-block: 14px 22px; font-size: .9375rem; }
.comments li { max-width: 88%; padding: 9px 14px 11px; border-radius: 4px 14px 14px; background: var(--soft); }
.comments li:nth-child(2) { justify-self: end; border-radius: 14px 4px 14px 14px; background: var(--coral-soft); }
.comment-form { display: grid; justify-items: start; gap: 12px; }
.comment-form label { width: 100%; }

@media (max-width: 1220px) {
  .planner { grid-template-columns: minmax(0, 1fr); }
  .agent { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); }
  .agent .button { grid-area: 2 / 2; margin: 0; }
  .window-status { order: 1; width: 100%; }
  .composer { grid-template-columns: minmax(0, 1fr); }
  .composer-form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; border: 0; border-bottom: 1px solid var(--line); }
  .composer-form > :not(fieldset) { grid-column: 1 / -1; }
}

@media (min-width: 761px) and (max-width: 1340px) {
  .chip { padding: 5px 7px; }
  .chip .photo { display: none; }
}

@media (max-width: 1060px) {
  .sign-in { display: none; }
  .plan-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .faq-three, .faq:has(> :nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc > .prose { max-width: 720px; }
  .toc { position: static; max-height: none; padding: 18px 20px; border-radius: var(--card); background: var(--soft); }
  .toc a { min-height: 44px; }
  .split, .split-wide, .split.time, .reuse, .flow { grid-template-columns: minmax(0, 1fr); }
  .flow .merge-arrow { justify-self: center; rotate: 90deg; }
  .flow > .flow-you { grid-template: auto / auto auto; align-items: center; justify-content: center; gap: 18px; padding: 14px 20px; }
  .flow-you .flow-step { grid-template-columns: auto auto; align-items: center; }
  .split > * + * { border: 0; border-top: 1px solid var(--line); }
  .views > *, .window-bar .button { min-height: 44px; }
  .week {
    grid-template-columns: repeat(7, 148px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .week::-webkit-scrollbar { display: none; }
  .day { scroll-snap-align: start; }
  .event-moves button { min-height: 44px; }
  .events { min-height: 216px; }
  .voice, .approval, .dates { grid-template-columns: minmax(0, 1fr); }
  .date-posts { border: 0; border-top: 1px solid var(--line); }
  .approval .intro { order: -1; }
  .calendar { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .board-detail { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; column-gap: 22px; border: 0; border-top: 1px solid var(--line); }
  .board-detail > * { grid-column: 2; }
  .board-detail > .board-post { grid-area: 1 / 1 / span 6 / auto; }
  .board-detail .button { justify-self: start; }
  @media (scripting: none) {
    .board-detail > .board-post { grid-area: auto; grid-column: 1 / -1; }
  }
}

@media (min-width: 761px) and (max-width: 860px) {
  .site-links a { padding-inline: 8px; }
  .window-bar { gap: 4px 10px; }
  .window-bar .profile { display: none; }
}

/* Cards in the same row share their picture and text rows, so titles line up. */
@media (min-width: 1061px) {
  .article-cards > li { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
  .article-cards .card { grid-row: 1 / -1; grid-template-rows: subgrid; }
}

/* Article cards are side by side with their pictures, so they always line up. */
@media (min-width: 621px) and (max-width: 1060px) {
  .article-cards, .blog-list .article-cards { grid-template-columns: minmax(0, 1fr); }
  .blog-list li, .blog-list li:nth-child(-n + 2) { grid-column: auto; }
  .article-cards .card { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; padding: 14px; }
  .article-text { grid-template-rows: none; }
}

@media (max-width: 620px) {
  /* Each cookie is its own block. Only the column names are hidden. */
  .prose .table-wrap { border: 0; border-radius: 0; }
  .prose table { min-width: 0; }
  .prose :is(table, tbody, tr, th, td) { display: block; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prose tbody tr { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--card); }
  .prose tbody tr + tr { margin-top: 10px; }
  .prose tbody :is(th, td) { padding: 0; white-space: normal; }
  .prose tbody td { margin-top: 4px; }
  .prose td:last-child { color: var(--muted); font-size: .875rem; }
  .article-cards, .blog-list .article-cards { grid-template-columns: minmax(0, 1fr); }
  .blog-list li, .blog-list li:nth-child(-n + 2) { grid-column: auto; }
}

@media (max-width: 760px) {
  .menu-panel { inset: 100% 0 auto; width: auto; max-height: 75vh; padding: 12px; overflow-y: auto; }
  .menu-groups, .feature-map, .points, .steps, .related, .channel-list, .plan-cards, .pair { grid-template-columns: minmax(0, 1fr); }
  .points-5 > :first-child { grid-column: auto; }
  /* Each step is a row, with its icon on the left. */
  .flow > div, .flow > .flow-you { grid-template: auto / minmax(0, 1fr); gap: 16px; padding: 18px 20px 20px; justify-content: stretch; }
  .flow-who, .flow .agent-name { justify-content: start; text-align: start; }
  .flow ul { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .flow-step, .flow-you .flow-step { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; padding: 0; text-align: start; }
  .flow-icon { width: 52px; height: 52px; }
  .flow-icon .icon { width: 24px; }
  .flow li + li::before { inset: -16px auto auto 25px; width: 0; height: 16px; border: 0; border-inline-start: 2px solid var(--coral-line); }
  .split .people { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .repeats li { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .repeats li > :first-child { grid-row: span 2; }
  .repeats li > b { grid-column: 2 / -1; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-list li { min-height: 60px; padding-block: 10px; }
  .mini-scroll { overflow-x: auto; padding-bottom: 6px; }
  .mini-scroll .mini-week { grid-template-columns: repeat(7, 92px); }
  /* Sunday, Wednesday and Saturday */
  .about-week .mini-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-week .mini-week > :not(:nth-child(3n + 1)) { display: none; }
  .metrics > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .metrics dd { padding-inline-start: 54px; }
  .plan-people li { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .date-plan li { grid-template-columns: 72px minmax(0, 1fr); gap: 4px 16px; padding: 14px; }
  /* Tab goes along the top row first, in browsers that support this. */
  .site-header { grid-template-columns: 1fr auto; gap: 0 12px; padding-block: 8px 4px; reading-flow: grid-rows; }
  .site-header .site-links { grid-row: 2; grid-column: 1 / -1; margin-inline: -12px; }
  .site-actions { display: none; }
  .languages summary { min-height: 44px; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); row-gap: 14px; padding-block: 12px 20px; }
  .tagline, .tagline:lang(zh) { margin-top: 16px; }
  .actions { margin-top: 16px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .window-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 14px; }
  .window-bar .profile { display: none; }
  .window-bar .workspace { font-size: .9375rem; }
  .window-bar .views { grid-area: 1 / 2; justify-self: end; }
  .window-bar .button { grid-area: 2 / 2; padding-inline: 11px; }
  .window-status { grid-column: 1 / -1; }
  .agent { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
  .agent .button { grid-area: auto; min-height: 44px; }
  .hero-copy-home h1:lang(zh) { font-size: min(16vw, 7.5rem); }
  .merge, .voice-pair, .faq, .review { grid-template-columns: minmax(0, 1fr); }
  .date-list {
    grid-template-columns: none;
    grid-auto-columns: 9.5rem;
    grid-auto-flow: column;
    gap: 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .date-list::-webkit-scrollbar { display: none; }
  .date-tab { scroll-snap-align: center; padding-inline: 8px; }
  .date-posts { padding: 18px 14px; }
  .merge-arrow { justify-self: center; rotate: 90deg; }
  .composer-form { grid-template-columns: minmax(0, 1fr); }
  .composer-previews {
    grid-template-columns: repeat(3, clamp(min(14rem, 100%), 76%, 330px));
    overflow-x: auto;
    scroll-padding-inline: 16px;
    scroll-snap-type: x proximity;
  }
  .composer-previews .post-card { scroll-snap-align: start; }
  .board { grid-auto-rows: minmax(78px, auto); }
  .board-weekday { padding-inline: 2px; }
  .cell { padding: 4px 2px; }
  .cell-number { margin: 0 0 4px; text-align: center; }
  .chip { justify-content: center; min-height: 44px; padding: 2px; }
  .chip .photo { width: 100%; max-width: 40px; }
  .chip-text { display: none; }
  .board-detail { grid-template-columns: minmax(0, 1fr); }
  .board-detail > *, .board-detail > .board-post { grid-area: auto; }
  .board-detail .button { justify-self: stretch; }
  .plan li { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .plan .photo { grid-row: span 3; align-self: start; }
  .plan strong { grid-column: 2 / -1; }
  .plan .state { grid-column: 2 / -1; justify-self: start; }
  .approval-plan { padding-bottom: 40px; }
}

/* Any touch screen, including a phone turned sideways. */
@media (pointer: coarse) {
  .views > * { min-width: 44px; }
  .languages summary, .button, .views > *, .event-moves button, .chip { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
