/* Hallmark · genre: playful · theme: custom (vibe: "sticky notes on warm paper") · scope: page · shape: product page, claim + demo hero · job: try (Add to Chrome) · signature: the decision demo, the same pages judged against whichever note you pick, with real model answers · imagery: screenshots 4 (capture via Playwright) · tokens: ../../frontend/src/styles/tokens.css
   Hallmark · pre-emit critique: P5 H5 E4 S4 R5 V4 · weakest: E, the demo is the only motion; kept it to a verdict swap so it reads as state, not decoration
   Hallmark · answered 63 · the swatches in the demo tabs are note colours, the same squares the app uses to name a note; they are not status dots
   Hallmark · answered F4 · the close band uses a paper button on ink; it is the same action as the hero's, so the page still has one primary
   Hallmark · answered 23 · ink is the accent and the type colour; the measured share is mostly headline ink, colour proper stays in the notes
   Hallmark · answered 58 · the privacy rows are a disclosure, five short facts the reader should see together; privacy.html is a legal document; it is long on purpose and set as one readable column */
@import './tokens.css';

/* Site scale: the app's tokens with page-sized type and the page canvas. */
:root {
  --text-sm: 0.875rem;
  --text-md: 1.0625rem;
  --text-lead: clamp(1.125rem, 0.9rem + 0.6vw, 1.3125rem);
  --text-title: clamp(1.25rem, 1rem + 0.6vw, 1.5625rem);
  --text-section: clamp(2.25rem, 1.2rem + 2.8vw, 3.25rem);
  --text-display: clamp(3rem, 1.4rem + 4.4vw, 5.25rem);
  --container: 1440px;
  --gutter: 64px;
  --gap-columns: 32px;
  --section-gap-s: 120px;
  --section-gap: 144px;
  --section-gap-l: 176px;
  --control-h-lg: 52px;
  --shadow-shot: 0 1px 2px oklch(23% 0.02 60 / 0.06), 0 24px 60px -24px oklch(23% 0.02 60 / 0.28);
  --color-shot-edge: color-mix(in oklch, var(--color-ink) 10%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-rule-strong) var(--color-paper); scroll-padding-top: var(--space-3xl); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font: 400 var(--text-md) / 1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in oklch, var(--note-butter) 80%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
a { color: inherit; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: var(--tracking-display);
  line-height: 1.02;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-display); max-width: 11ch; }
h2 { font-size: var(--text-section); max-width: 18ch; }
h3 { font-size: var(--text-title); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); max-width: 46ch; }
img { display: block; max-width: 100%; height: auto; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
  z-index: var(--z-tooltip);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-control);
  background: var(--color-ink);
  color: var(--color-paper);
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

/* Nav */
.nav { position: relative; z-index: var(--z-sticky); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.nav nav { display: flex; gap: var(--space-xs); }
.nav nav a {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-control);
  color: var(--color-ink-2);
  text-decoration: none;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.nav nav a:hover { background: var(--color-paper-2); color: var(--color-ink); }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font: 800 1.5rem / 1 var(--font-display);
  letter-spacing: var(--tracking-display);
  text-decoration: none;
  border-radius: var(--radius-control);
}
.wordmark-lg { font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem); gap: var(--space-sm); }
.wordmark-lg img { width: clamp(36px, 1.6rem + 2vw, 56px); height: auto; }

/* Buttons: rest, hover, active, focus-visible; disabled is never used on the site. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-control);
  font: 700 var(--text-md) / 1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: var(--control-h-lg); padding: 0 var(--space-xl); font-size: 1.125rem; }
.btn-primary { background: var(--color-ink); color: var(--color-paper); }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-paper { background: var(--color-paper); color: var(--color-ink); }
.btn-paper:hover { background: var(--color-paper-3); }
.link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-rule-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur-micro) var(--ease-out);
}
.link:hover { text-decoration-color: currentColor; }

/* Screenshots: the product, framed only by radius, a hairline and a shadow. */
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sheet);
  background: var(--color-paper-2);
  box-shadow: var(--shadow-shot);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--color-shot-edge);
  pointer-events: none;
}

/* Hero: the claim beside a live demo of it. */
.hero { padding-block: var(--space-2xl) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-3xl);
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: var(--space-lg); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: var(--space-sm); }
.aside { color: var(--color-muted); font-size: var(--text-sm); }
.hero h1 { font-size: clamp(2.75rem, 1.2rem + 3.4vw, 4.25rem); max-width: 13ch; }

/* Decision demo: the same pages, judged against whichever note you pick. */
.demo {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-xl);
  border-radius: var(--radius-sheet);
  background: var(--color-raised);
  box-shadow: var(--shadow-shot), 0 0 0 1px var(--color-shot-edge);
}
.demo-head { display: flex; flex-direction: column; gap: var(--space-sm); }
.demo-label { color: var(--color-muted); font-size: var(--text-sm); font-weight: 700; }
.seg.seg-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg-notes [role='tab'] { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); padding: 0 var(--space-sm); white-space: nowrap; }
.seg-notes .swatch { flex: none; width: 12px; height: 12px; border-radius: 4px; background: var(--tab-note); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--note-ink) 12%, transparent); }
.decisions { display: grid; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.decisions li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'site verdict' 'page verdict';
  align-items: center;
  column-gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  box-shadow: inset 0 0 0 1px var(--color-rule);
  transition: background-color var(--dur-long) var(--ease-out), box-shadow var(--dur-long) var(--ease-out);
}
.decisions .site { grid-area: site; color: var(--color-muted); font-size: var(--text-sm); }
.decisions .page { grid-area: page; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--dur-long) var(--ease-out); }
.decisions .verdict {
  grid-area: verdict;
  min-width: 5.5rem;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: center;
  transition: background-color var(--dur-long) var(--ease-out), color var(--dur-long) var(--ease-out);
}
.decisions li:not(.is-allowed) .page { color: var(--color-muted); }
.decisions li.is-allowed { background: color-mix(in oklch, var(--task-note) 32%, var(--color-paper)); box-shadow: inset 0 0 0 1px var(--task-note); }
.decisions li.is-allowed .verdict { background: var(--task-note); color: var(--note-ink); }
.decisions .verdict.is-swapping { animation: verdict-in var(--dur-long) var(--ease-out); }
@keyframes verdict-in { from { opacity: 0; transform: translateY(4px); } }
.demo-note { color: var(--color-muted); font-size: var(--text-sm); }
.focus .steps { margin-top: var(--space-sm); }

/* Sections */
section + section { margin-top: var(--section-gap); }
.head-block { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-2xl); }

.switcher { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-lg); }
.seg {
  display: inline-flex;
  gap: var(--space-3xs);
  padding: var(--space-2xs);
  border-radius: 14px;
  background: var(--color-paper-2);
  box-shadow: inset 0 0 0 1px var(--color-rule);
}
.seg [role='tab'] {
  min-height: 40px;
  padding: 0 var(--space-lg);
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-muted);
  font: 700 var(--text-md) / 1 var(--font-body);
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.seg [role='tab']:hover { color: var(--color-ink); }
.seg [role='tab'][aria-selected='true'] { background: var(--color-raised); color: var(--color-ink); box-shadow: var(--shadow-seg), 0 0 0 1px var(--color-rule); }
.panels { display: grid; width: 100%; }
.panels > * { grid-area: 1 / 1; }
.shot-wide { aspect-ratio: 16 / 10; }
.js .panels > [hidden] { display: block; visibility: hidden; opacity: 0; }
.js .panels > * { transition: opacity var(--dur-long) var(--ease-out), visibility var(--dur-long); }
.no-js .seg { display: none; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.split-text { display: flex; flex-direction: column; gap: var(--space-lg); }
.facts { display: grid; gap: var(--space-sm); margin: var(--space-xs) 0 0; padding: 0; list-style: none; }
.facts li { padding-top: var(--space-sm); border-top: 1px solid var(--color-rule); color: var(--color-ink-2); max-width: 44ch; }
.shot-tall { aspect-ratio: 704 / 484; }

.canvas-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.steps { display: grid; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: var(--space-md); row-gap: var(--space-2xs); counter-increment: step; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-control);
  background: var(--note-sky);
  color: var(--note-ink);
  font: 800 1.125rem / 1 var(--font-display);
}
.steps li:nth-child(2)::before { background: var(--note-butter); }
.steps li:nth-child(3)::before { background: var(--note-mint); }
.steps p { color: var(--color-ink-2); }
.shot-notes { aspect-ratio: 984 / 510; }

.privacy-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); }
.privacy-grid .head-block { margin-bottom: 0; }
.rows { margin: 0; }
.rows > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); gap: var(--gap-columns); padding-block: var(--space-lg); border-top: 1px solid var(--color-rule); }
.rows > div:last-child { border-bottom: 1px solid var(--color-rule); }
.rows dt { font: 700 var(--text-title) / 1.2 var(--font-display); }
.rows dd { margin: 0; color: var(--color-ink-2); max-width: 52ch; }

.close { margin-top: var(--section-gap-l); background: var(--color-ink); color: var(--color-paper); padding-block: var(--section-gap-s); }
.close .lead { color: color-mix(in oklch, var(--color-paper) 78%, transparent); margin-top: var(--space-md); }
.close-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap-columns); align-items: center; }
.close-mark { justify-self: end; width: clamp(140px, 8rem + 8vw, 240px); height: auto; }

.footer { padding-block: var(--space-3xl) var(--space-2xl); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-xl) var(--gap-columns); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); justify-content: flex-end; }
.footer-links a { color: var(--color-ink-2); text-decoration: none; border-radius: 4px; transition: color var(--dur-micro) var(--ease-out); }
.footer-links a:hover { color: var(--color-ink); }
.legal { grid-column: 1 / -1; padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); }

/* Long document (privacy) */
.doc { padding-block: var(--space-2xl) var(--section-gap-s); }
.doc-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); }
.doc-head { display: flex; flex-direction: column; gap: var(--space-md); align-self: start; position: sticky; top: var(--space-xl); }
.doc-head h1 { font-size: var(--text-section); }

.doc-head p { color: var(--color-muted); font-size: var(--text-sm); }
.doc-body { max-width: 68ch; }
.doc-body h2 { font-size: var(--text-title); font-weight: 800; max-width: none; margin: var(--space-2xl) 0 var(--space-sm); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: var(--color-ink-2); }
.doc-body p + p { margin-top: var(--space-sm); }
.doc-body ul { margin: var(--space-sm) 0 0; padding-left: 1.25rem; display: grid; gap: var(--space-xs); }
.doc-body strong { color: var(--color-ink); }
.summary { padding: var(--space-lg); border-radius: var(--radius-card); background: var(--note-butter); color: var(--note-ink); }
.summary p { color: var(--note-ink); }

@media (max-width: 60rem) {
  :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; }
  .hero-grid, .split, .canvas-grid, .privacy-grid, .close-grid, .doc-inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .rows > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .close-mark { justify-self: start; }
  .doc-head { position: static; }
}
@media (max-width: 40rem) {
  :root { --gutter: 16px; --gap-columns: 16px; }
  .demo { padding: var(--space-md); }
  .decisions .page { white-space: normal; }
  .seg.seg-notes { grid-template-columns: minmax(0, 1fr); }
  .seg-notes [role='tab'] { justify-content: flex-start; }
  .nav nav a:not(:last-child) { display: none; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
/* 404 */
.notfound { padding-block: var(--space-4xl) var(--section-gap-s); }
.notfound .container { display: flex; flex-direction: column; gap: var(--space-md); }
.doc-body code { font: 400 0.9em / 1 ui-monospace, monospace; padding: 0 var(--space-2xs); border-radius: 4px; background: var(--color-paper-2); }
.nav nav a[aria-current='page'] { color: var(--color-ink); background: var(--color-paper-2); }
