/* The landing page (yourlowdown.app/) and the gone page, on top of recap.css: same tokens, and the
   hero is a real recap sheet. Lowdown's own palette, never a provider's. */
.home { --wide: 1080px; }
.home main, .home .bar { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.home section { border-top: 1px solid var(--rule); padding: 40px 0; }
.home h2 { margin: 0; text-wrap: balance; font: 600 24px/30px var(--sans); letter-spacing: -.01em; color: var(--ink); }
.home h3 { margin: 0; font: 600 16px/24px var(--sans); color: var(--ink); }
.home p { margin: 0; }
.home a { text-decoration-color: var(--accent); }

/* ---------- bar ---------- */
.bar { display: flex; align-items: baseline; justify-content: space-between; padding-top: 4px !important; padding-bottom: 4px !important; }
.mark { padding: 12px 0; display: inline-flex; align-items: baseline; gap: 5px; text-decoration: none; color: var(--ink); }
.mark .your { font: italic 400 16px/1 var(--voice); color: var(--graphite); }
.mark .name { font: 600 22px/1 var(--sans); letter-spacing: -.02em; }
.signin { font-weight: 500; padding: 10px 0 10px 12px; }

/* ---------- hero: the pitch, a real recap, and the questions it answers ---------- */
.hero { padding: 24px 0 48px; }
.hero h1 { margin: 0; max-width: 13em; text-wrap: balance; font: 600 40px/44px var(--sans); letter-spacing: -.02em; color: var(--ink); }
.lede { margin-top: 16px !important; max-width: 30em; font-size: 18px; line-height: 28px; color: var(--text); }
.for { margin-top: 12px !important; max-width: 30em; font-size: 15px; line-height: 22px; color: var(--graphite); }
.closed { margin-top: 20px !important; max-width: 30em; font-size: 15px; line-height: 22px; color: var(--ink); }
.exhibit { margin: 32px calc(-1 * var(--gutter)) 0; }
.exhibit .sheet { margin: 0; max-width: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.exhibit .sheet section { padding: 24px 0; }
.hero .asks { margin-top: 32px; padding-bottom: 0; }

.asks ol { list-style: none; margin: 8px 0 0; padding: 0; }
.asks li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.asks li:last-child { border-bottom: 0; padding-bottom: 0; }
.asks h2 { font-size: 18px; line-height: 26px; }
.asks q { display: block; font: 500 16px/24px var(--sans); color: var(--ink); }
.answer { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; margin-top: 4px !important; font-size: 15px; color: var(--graphite); }
.answer b { font-size: 15px; color: var(--ink); }
.answer small { font-size: 14px; }

@media (min-width: 680px) {
  .exhibit { margin: 40px 0 0; max-width: 640px; }
  .exhibit .sheet { border: 1px solid var(--rule); }
}
/* Narrow: the recap right under the pitch, the questions after it. Wide: the pitch and questions
   stay beside the recap as it scrolls. */
.hero { display: flex; flex-direction: column; }
.side { display: contents; }
.pitch { order: 1; }
.exhibit { order: 2; }
.hero .asks { order: 3; margin-top: 8px; border-top: 0; }
/* In between: one column, centered, not hugging the left edge. */
@media (min-width: 680px) and (max-width: 899px) {
  .hero { max-width: 640px; margin-inline: auto; }
}
@media (min-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) 560px !important; column-gap: 64px !important; }
}
@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 480px; column-gap: 48px; align-items: start; padding-top: 48px; }
  .side { display: block; position: sticky; top: 24px; padding-top: 24px; }
  .exhibit { margin: 0; }
  .exhibit .sheet { padding: 32px 32px 24px; }
  .hero .asks { margin-top: 40px; border-top: 1px solid var(--rule); }
}

/* ---------- how a month goes: each step beside what it looks like ---------- */
.steps { list-style: none; margin: 24px 0 0; padding: 0; }
.steps > li { padding: 24px 0; border-top: 1px solid var(--rule); }
.steps > li:first-child { border-top: 0; padding-top: 0; }
.step p { margin-top: 2px !important; max-width: 28em; font-size: 15px; line-height: 22px; color: var(--graphite); }
.show { margin: 16px calc(-1 * var(--gutter)) 0; padding: 20px var(--gutter); background: var(--sheet); }
.screen-title { font: 600 20px/26px var(--sans); color: var(--ink); }
.screen-title > span { margin-left: 6px; font: 400 14px/20px var(--sans); color: var(--graphite); }
.screen-title .fig { font-size: 13px; }
.agreement .row { grid-template-columns: minmax(0, 1fr) auto; }
.show .ledger { margin-top: 8px; }
.show .row:last-child { border-bottom: 0; }
.log { padding-top: 12px; border-top: 1px solid var(--rule); font-weight: 500; color: var(--accent); }
.log > span { font-weight: 400; color: var(--graphite); }
.agreement .who { font: 600 20px/26px var(--sans); color: var(--ink); }
.agreement .when { margin-top: 4px !important; font-size: 13px; font-weight: 400; color: var(--graphite); }
.agreement .pkg { margin-top: 16px !important; font-weight: 500; color: var(--ink); }
.agreement .ledger { margin-top: 4px; }
.agreement .signed { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--rule); font: 600 16px/24px var(--sans); color: var(--accent); }
.agreement .signed::before { content: "✓ "; }
.agreement .on { font-size: 13px; font-weight: 400; color: var(--graphite); }
@media (min-width: 760px) {
  .steps > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .show { margin: 0; padding: 20px 24px; }
}

/* ---------- what you sell ---------- */
.sell .split > div:first-child > p { margin-top: 8px !important; max-width: 30em; color: var(--graphite); }
.catalog .services { margin: 8px 0 20px !important; font-size: 15px; line-height: 24px; }
.catalog .row { grid-template-columns: minmax(0, 1fr); }
.catalog .plan { display: block; font-size: 14px; line-height: 20px; color: var(--graphite); }
.catalog .plan b { font-size: 13px; color: var(--ink); }
.catalog .ledger { margin-top: 4px; }
@media (min-width: 760px) {
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: start; }
}

/* ---------- monthly work and projects: two tabs ---------- */
.switch { display: flex; margin-top: 16px; border-bottom: 1px solid var(--rule); }
.switch button {
  flex: 1 1 0; min-height: 44px; padding: 10px 4px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; cursor: pointer; font: 500 15px/20px var(--sans); color: var(--graphite);
}
.switch button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--ink); }
.switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 760px) { .switch button { flex: 0 0 auto; padding: 10px 16px; } }
.panel .steps { margin-top: 24px; }

.thread-title { font-weight: 600; color: var(--ink); }
.thread-title span { padding: 0 4px; color: var(--graphite); }
.thread { list-style: none; margin: 4px 0 0; padding: 0; }
.thread li { display: grid; grid-template-columns: 7ch minmax(0, 1fr); column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.thread li:last-child { border-bottom: 0; padding-bottom: 0; }
.thread time { font-size: 13px; line-height: 24px; }
.thread .what { font-weight: 500; }
.thread li:last-child .what { color: var(--accent); }
.thread .detail { font-size: 14px; line-height: 20px; color: var(--graphite); }
.thread blockquote { margin: 4px 0 0; font: italic 400 18px/26px var(--voice); }

/* ---------- the example recap, cut short ---------- */
.work .more p { margin: 0; color: var(--graphite); }


/* ---------- end ---------- */
.end { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0 48px; border-top: 1px solid var(--rule); }
.end > a:last-child { font-weight: 500; padding: 10px 0 10px 12px; }

/* ---------- status (gone page) ---------- */
.status { padding: 40px 0 64px !important; }
.status p:first-child { max-width: 26em; font-size: 18px; line-height: 28px; color: var(--ink); }
.status p + p { margin-top: 12px; }
.status a { font-weight: 500; display: inline-block; padding: 10px 0; }

/* ---------- a link or page that leads nowhere ---------- */
.gone .status { border-top: 0; padding-top: 48px !important; }
.gone h1 { margin: 0; max-width: 16em; font: 600 32px/38px var(--sans); letter-spacing: -.02em; color: var(--ink); }
.gone .status p { margin-top: 12px; max-width: 28em; font-size: 16px; line-height: 24px; color: var(--graphite); }
.panel .row .sub { color: var(--graphite); }

/* ---------- a recap as the client opens it, in the provider's colors (a made-up navy and gold) ---------- */
.brand {
  --ink: #1F3440; --text: #1F3440; --accent: #8A5F12; --sheet: #FAFBFB;
  --graphite: #5E6C74; --rule: #D9DEE1;
  background: var(--sheet); color: var(--text);
}
.mini { border: 1px solid var(--rule); }
.mini-head { position: relative; padding-bottom: 12px; }
.mini .logo { margin-bottom: 20px; }
.mini .stamp { top: 0; right: 4px; width: 76px; height: 76px; }
.mini .m-client { margin-top: 4px !important; font: 600 16px/22px var(--sans); color: var(--ink); }
.mini .m-title { font: 600 26px/30px var(--sans); letter-spacing: -.02em; color: var(--ink); }
.mini .m-range { margin-top: 6px !important; font-size: 12px; font-weight: 400; letter-spacing: .04em; color: var(--graphite); }
.mini .ledger { margin-top: 4px; border-top: 1px solid var(--rule); }
.mini .row { padding: 10px 0; }
.mini .row:last-child { border-bottom: 1px solid var(--rule); }
.mini .m-total { display: flex; justify-content: space-between; padding-top: 10px; }
.mini .m-total b { font-weight: 600; }

/* ---------- the month's checklist as the app shows it: logged items under their service ---------- */
.log-mock .group-head { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.log-mock .group-head b { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); }
.log-mock .group-head .ticks, .log-mock .group-head .fig { flex-shrink: 0; }
.log-mock .group-head .fig { font-size: 15px; color: var(--ink); }
.log-mock .ledger { margin-top: 4px; border-top: 1px solid var(--rule); }
.log-mock .row { grid-template-columns: 3ch minmax(0, 1fr); padding: 10px 0; }
.log-mock .row .sub { color: var(--graphite); }
.log-mock .ledger + .log { border-top: 0; padding-top: 10px; }
.agreement .pkg span { margin-left: 6px; font-weight: 400; font-size: 14px; color: var(--graphite); }

/* ---------- the top bar's links ---------- */
.nav { display: flex; align-items: baseline; gap: 0 20px; }
.nav a { padding: 12px 0 12px 4px; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.hidden-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home a:focus-visible, .home input:focus-visible, .home button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- the front page: a client's question, answered with a recap link ---------- */
.front-hero { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; padding: 48px 0 0; }
.front-pitch { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.front h1 { margin: 0; max-width: 13em; font: 600 clamp(36px, 5vw, 56px)/1.06 var(--sans); letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.front .lede { margin: 0 !important; max-width: 30em; font-size: 19px; line-height: 1.5; color: var(--text); }
.invite-form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 480px; }
.invite-form input {
  flex: 1 1 220px; min-width: 0; min-height: 48px; box-sizing: border-box; padding: 0 14px;
  font: 400 16px var(--sans); color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px;
}
.invite-form input[aria-invalid="true"] { border-color: var(--short-text); }
.invite-form button {
  min-height: 48px; padding: 0 20px; font: 600 16px var(--sans); color: var(--sheet); background: var(--ink);
  border: 0; border-radius: 4px; cursor: pointer;
}
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.invite-error { margin: 8px 0 0 !important; font-size: 15px; color: var(--short-text); }
.invite-done { max-width: 448px; padding: 14px 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
.facts { font-size: 14px; color: var(--graphite); }

.chat { flex: 0 1 440px; min-width: 0; margin: 0; padding: 24px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; flex-direction: column; gap: 4px; max-width: 86%; }
.msg.them { align-self: flex-start; }
.msg.you { align-self: flex-end; align-items: flex-end; }
.msg .who { font-size: 12px; color: var(--graphite); }
.msg.them p { padding: 12px 14px; background: #E3E8E2; border-radius: 4px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.msg .bubble { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: var(--accent); color: var(--sheet); border-radius: 4px; font-size: 16px; line-height: 1.45; }
.preview { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; background: var(--sheet); border-radius: 4px; text-decoration: none; }
.preview:hover .p-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.p-title { font: 600 16px/1.3 var(--sans); color: var(--ink); }
.p-line { font-size: 14px; line-height: 1.4; color: var(--graphite); }
.p-domain { font-size: 13px; color: var(--graphite); }
@media (max-width: 679px) {
  .chat { padding: 0; background: none; border: 0; }
  .msg { max-width: 92%; }
}

.front-steps { margin-top: 72px; padding: 28px 0 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px; }
.front-steps h3 { font-size: 16px; line-height: 1.4; }
.front-steps p { margin-top: 4px !important; font-size: 15px; line-height: 1.5; color: var(--graphite); }
.front-more { margin: 20px 0 64px !important; }
.front-more a { display: inline-block; padding: 10px 0; font-weight: 500; text-underline-offset: 3px; }
