/* Highlit public site. Tokens and rules: DESIGN.md. Checked by tools/design-lint.py. */
:root {
  --ink: #16181D;
  --paper: #FFFFFF;
  --graphite: #6B6F76;
  --rule: #E3E4E6;
  --highlighter: #FFE14D;
  --correction: #C62F1E;
  --radius: 6px;
  --font: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, Menlo, Consolas, monospace;
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #F2F2F3; --paper: #16181D; --graphite: #A3A7AE; --rule: #33363D; --correction: #FF7A66; }
}
@media (min-width: 720px) {
  :root { --gutter: 40px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 72px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px; z-index: 1; }

/* Page frame: left-aligned, 680px reading column */
.top, main, .foot { padding-left: var(--gutter); padding-right: 16px; }
.column { max-width: 680px; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; padding-top: 8px; padding-bottom: 4px; }
.wordmark { font-weight: 700; font-size: 22px; text-decoration: none; display: inline-block; min-height: 44px; line-height: 44px; }
.mark { background: var(--highlighter); color: #16181D; padding: 0 2px; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.top nav a { display: inline-block; min-height: 44px; line-height: 44px; text-decoration: none; color: var(--graphite); }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

main { padding-top: 8px; padding-bottom: 40px; }
h1 { font-size: 28px; line-height: 1.2; margin: 16px 0 12px; font-weight: 700; }
h2 { font-size: 22px; line-height: 1.3; margin: 40px 0 8px; font-weight: 700; }
h3 { font-size: 17px; line-height: 1.4; margin: 24px 0 4px; font-weight: 700; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin: 0 0 6px; }
.lede { font-size: 19px; line-height: 1.45; }
.quiet { color: var(--graphite); }
.small { font-size: 15px; }
.changed, .cancelled { color: var(--correction); font-weight: 600; }
mark { background: var(--highlighter); color: #16181D; padding: 0 1px; }
.when, time { font-family: var(--mono); font-size: 15px; color: var(--graphite); }
strong { font-weight: 700; }

/* Home promise is the one big headline */
.promise { font-size: 30px; max-width: 18em; }
@media (min-width: 720px) {
  .promise { font-size: 40px; margin-top: 32px; }
}
@media (min-width: 1200px) {
  .promise { font-size: 44px; }
}

/* Notice: top and bottom rules, no box */
.notice { padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 0 24px; }

/* Signup form */
form { margin: 0 0 16px; }
label { display: block; font-weight: 600; margin: 0 0 6px; }
.field { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
input[type="email"] {
  flex: 1 1 260px; width: 100%; max-width: 380px; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--graphite); border-radius: var(--radius);
}
button, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px;
  font: inherit; font-weight: 600; color: var(--paper); background: var(--ink); border: 1px solid var(--ink);
  border-radius: var(--radius); cursor: pointer; text-decoration: none;
}
.form-note { margin-top: 8px; }

/* Hero: the chat lines beside the email built from them */
.hero { margin: 32px 0 8px; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(260px, 340px) minmax(0, 600px); gap: 48px; align-items: start; }
}
.hero-caption { font-size: 15px; color: var(--graphite); margin: 0 0 8px; }
.chat { list-style: none; padding: 0; margin: 0; font-size: 15px; line-height: 1.45; color: var(--graphite); }
.chat li { margin: 0; padding: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat li.lit-line { white-space: normal; }
.chat .group { font-weight: 600; padding-top: 14px; padding-bottom: 2px; color: var(--graphite); }
.chat .group:first-child { padding-top: 0; }
.chat b { font-weight: 600; }
.chat mark { padding: 1px 2px; }

/* The email, shown flat with the system fonts it really uses */
.email { border: 1px solid var(--rule); margin: 0 0 24px; padding: 20px 16px 16px; font-family: var(--system); font-size: 16px; line-height: 1.5; max-width: 600px; }
@media (min-width: 720px) {
  .email { padding: 24px; }
}
.email-head { margin: 0 0 20px; padding: 0 0 12px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.email-head p { margin: 0 0 2px; display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 0 8px; }
.email-head p.quiet { display: block; margin-top: 6px; }
.email-head .k { color: var(--graphite); }
.email h3, .email .section { font-size: 20px; font-weight: 700; margin: 20px 0 8px; }
.email .section:first-of-type { margin-top: 0; }
.email .group-name { color: var(--graphite); font-weight: 600; margin: 0 0 8px; }
.email .item { margin: 0 0 20px; }
.email .label { font-weight: 600; margin: 0; }
.email .meta { color: var(--graphite); font-size: 14px; margin: 0; }
.email blockquote, blockquote { margin: 8px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--rule); }
blockquote .who { display: block; color: var(--graphite); font-size: 14px; }
.email .actions { font-size: 13px; color: var(--graphite); margin: 6px 0 0; }
.email .lines { list-style: none; padding: 0; margin: 0 0 20px; font-size: 15px; }
.email .lines li { display: grid; grid-template-columns: 6.5em 1fr; gap: 0 12px; margin: 0; padding: 4px 0; }
.email .lines .d { color: var(--graphite); }
.email .email-foot { padding-top: 16px; border-top: 1px solid var(--rule); color: var(--graphite); font-size: 13px; line-height: 1.8; margin: 0; }
.email .fake { text-decoration: underline; text-underline-offset: 3px; }

/* Hero motion (hero.js adds .motion only when motion is allowed) */
.motion .hero .chat mark { background-color: transparent; color: inherit; transition: background-color 500ms ease-out, color 500ms ease-out; }
.motion .hero .chat mark.lit { background-color: var(--highlighter); color: #16181D; }
.motion .hero [data-from], .motion .hero .settle-last { opacity: 0; transform: translateY(8px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.motion .hero [data-from].settled, .motion .hero.done .settle-last { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Lists and rows, not cards */
.rows { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--rule); }
.rows > li { padding: 12px 0; margin: 0; border-bottom: 1px solid var(--rule); }
.item-line { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 4px 12px; }
.steps { padding-left: 24px; }
.steps li { padding-left: 4px; margin-bottom: 10px; }

/* Tables (pricing, retention, calendar) */
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
thead th { border-bottom: 2px solid var(--ink); font-weight: 700; }
tbody th { font-weight: 600; }
.plans th:not(:first-child), .plans td { width: 33%; }
.price { font-size: 28px; font-weight: 700; line-height: 1.2; display: block; }
.price-note { display: block; font-weight: 400; }

/* FAQ and long text */
.faq h3 { margin-top: 28px; }
.legal h2 { font-size: 20px; margin-top: 32px; }
.draft { font-weight: 600; }

/* Footer */
.foot { color: var(--graphite); font-size: 15px; padding-top: 8px; padding-bottom: 32px; }
.foot .column { border-top: 1px solid var(--rule); padding-top: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.foot nav a { display: inline-block; min-height: 44px; line-height: 44px; }
.foot p { margin: 4px 0 0; }
