/* Hallmark · shape: Conversational FAQ (/, /en/), Long Document (/privacy.html, /en/privacy.html) · genre: editorial · theme: brand · redesign: full
 * paper: oklch(97.5% 0.008 142) · accent: oklch(52% 0.19 27) · display: Rethink Sans · body: Rethink Sans · hero: Banner (all four pages) · nav: edge-aligned, the icon and wordmark, one language link · footer: colophon line · signature: the icon's green as the field for the contact close and the privacy promise
 * axes: light/grotesk-heavy/chromatic-green · posture: full palette (field: icon green, signal: block-mark red, ink) · modes: light+dark · contrast: pass · fold: pass · job: support · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: P, a support page argues little; gave the setup steps a band of their own so the one thing people come for leads */
/* Hallmark · reworded "Do the tips unlock anything?" to "Do the tips add any features?" · 19 names unlock */
/* Hallmark · reworded "What the app doesn't do" to "What the app doesn’t do" · F1 names the straight quote */
/* Hallmark · waive 78 · the privacy pages are a Long Document with heads in the margin · the policy clauses are short legal heads that sit beside their text, not section heads */
/* Hallmark · waive 77 · the FAQ rows and policy clauses run on eight columns beside their heads · the owner's answers and legal text read at a 65ch measure, not stretched to ten columns */
/* Hallmark · dismissed 77 · the privacy pages are one legal document of nine clauses, counted as one section by design */
@import url("./tokens.css");
@import url("./base.css");

/* Layout */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap-columns);
}

/* Nav */

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  text-decoration: none;
  border-radius: var(--space-xs);
}

.wordmark img { width: 32px; height: 32px; flex-shrink: 0; }

.nav-link,
.footer a {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  text-decoration: underline;
  text-decoration-color: var(--color-rule);
  border-radius: var(--space-2xs);
  transition: color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out);
}

.nav-link { font-size: var(--text-md); padding: var(--space-xs) 0; }

.nav-link:hover,
.footer a:hover { color: var(--color-ink); text-decoration-color: currentColor; }

.nav-link:active,
.footer a:active,
.wordmark:active { opacity: 0.7; }

/* Links in running text */

main a {
  color: var(--color-accent);
  text-decoration-color: color-mix(in oklab, var(--color-accent) 40%, transparent);
  border-radius: var(--space-3xs);
  transition: text-decoration-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}

main a:hover { text-decoration-color: currentColor; }
main a:active { opacity: 0.7; }

/* Hero: Banner */

.hero { padding-block: var(--space-2xl) var(--space-xl); }

.hero .grid { align-items: end; row-gap: var(--space-xl); }
.hero-text { grid-column: 1 / span 7; display: grid; gap: var(--space-lg); }
.hero .lead { color: var(--color-ink-2); }

.hero-icon {
  grid-column: 9 / span 4;
  justify-self: end;
  width: 280px;
  height: 280px;
}

/* The promise on the privacy page, set on the icon's green */
.promise {
  grid-column: 8 / span 5;
  margin: 0;
  padding: var(--space-xl);
  border-radius: var(--radius-card);
  background: var(--color-field);
  color: var(--color-field-ink);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.promise strong { font-weight: 800; }

.updated { color: var(--color-muted); font-size: var(--text-sm); }

/* Steps: a band of its own */

.setup {
  background: var(--color-paper-2);
  padding-block: var(--section-gap-s);
}

.setup h2 { grid-column: 1 / -1; margin-bottom: var(--space-2xl); }

ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap-columns);
  row-gap: var(--space-2xl);
}

ol.steps li {
  counter-increment: step;
  display: grid;
  align-content: start;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-ink);
  font-size: var(--text-lg);
  line-height: 1.5;
}

ol.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-display-s);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-step);
  font-variant-numeric: tabular-nums;
}

ol.steps strong { font-weight: 700; }

/* FAQ: a head beside rows */

.faq { padding-block: var(--section-gap) var(--section-gap-s); }

.faq-head {
  grid-column: 1 / span 4;
  align-self: start;
  position: sticky;
  top: var(--space-xl);
}

.faq-list { grid-column: 5 / span 8; }

.qa {
  display: grid;
  gap: var(--space-sm);
  padding-block: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.qa:first-child { border-top-color: var(--color-ink); padding-top: var(--space-lg); }
.qa:last-child { padding-bottom: 0; }
.qa p { color: var(--color-ink-2); font-size: var(--text-lg); line-height: 1.6; }

/* Contact: the close, on the icon's green */

.contact {
  background: var(--color-field);
  color: var(--color-field-ink);
  padding-block: var(--section-gap-s);
}

.contact h2 { grid-column: 1 / span 3; font-size: var(--text-title); line-height: 1.2; padding-top: var(--space-xs); }

.contact-body { grid-column: 4 / span 9; display: grid; gap: var(--space-lg); min-width: 0; }

.contact .statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-display-s);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: none;
  text-wrap: balance;
}

.contact .statement a {
  color: inherit;
  text-decoration-thickness: 3px;
  text-decoration-color: currentColor;
  text-underline-offset: 0.12em;
  overflow-wrap: break-word;
  border-radius: var(--space-2xs);
}

.contact .statement a:hover { text-decoration-color: var(--color-paper); }
.contact :focus-visible { outline-color: var(--color-field-ink); }
.contact p:not(.statement) { font-size: var(--text-lead); }

/* Privacy: one long document, heads in the margin */

.policy { padding-block: var(--space-2xl) var(--section-gap-s); }

.clause {
  padding-block: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
  row-gap: var(--space-sm);
}

.clause:first-child { border-top-color: var(--color-ink); }

.clause h2 {
  grid-column: 1 / span 4;
  font-size: var(--text-title);
  line-height: 1.2;
}

.clause-body {
  grid-column: 5 / span 7;
  display: grid;
  gap: var(--space-md);
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--color-ink-2);
}

.clause-body ul { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-xs); }
.clause-body li::marker { color: var(--color-accent); }

/* Footer: a colophon line */

.footer { border-top: var(--rule-hair) solid var(--color-rule); }

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-xl);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.footer ul { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }

/* Under 60rem everything stacks in reading order */

@media (max-width: 60rem) {
  .hero { padding-block: var(--space-2xl); }
  .hero-text,
  .promise,
  .faq-head,
  .faq-list,
  .contact h2,
  .contact-body,
  .clause h2,
  .clause-body { grid-column: 1 / -1; }
  .hero-icon { grid-row: 1; justify-self: start; width: 120px; height: 120px; }
  .faq-head { position: static; margin-bottom: var(--space-xl); }
  .contact h2 { margin-bottom: var(--space-md); }
  ol.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  .hero-icon { width: 88px; height: 88px; }
  .promise { padding: var(--space-lg); font-size: var(--text-xl); }
  ol.steps { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .clause-body { font-size: var(--text-md); }
  .contact .statement { font-size: var(--text-2xl); }
}
