/*
 * Page shells: the public site, the signed-in app and the sign-in pages.
 *
 * Written for a phone first; wider screens add to it at three widths:
 *   640px  small tablets
 *   900px  the app's side menu and the site's header menu appear
 *   1200px the app's side column sits beside the content
 */

/* ================================================================== Brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-block-size: var(--control);
  min-inline-size: 0;
  max-inline-size: 100%;
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: 800;
}

.brand:hover { color: var(--ink); }

.brand__mark {
  flex: none;
  inline-size: 32px;
  block-size: 32px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.brand__name {
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================ Public site */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-nav);
  background: var(--bg);
  border-block-end: 1px solid var(--line-soft);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-block-size: 68px;
}

.site-nav,
.site-header__actions {
  display: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--control);
  color: var(--muted);
  font-size: var(--text-body);
  white-space: nowrap;
}

.site-nav__link:hover { color: var(--ink); }

.site-nav__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.site-menu {
  border-block-start: 1px solid var(--line-soft);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.site-menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-block: var(--space-4);
}

.site-menu__link {
  display: flex;
  align-items: center;
  min-block-size: 48px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-weight: 600;
}

.site-menu__link:hover,
.site-menu__link[aria-current="page"] {
  background: var(--primary-tint);
  color: var(--primary-deep);
}

.site-main { min-block-size: 60vh; }

/* A horizontal band of a public page. */
.section { padding-block: clamp(48px, 8vw, 80px); }

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}

/* The small coloured line above a section title. */
.eyebrow {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--primary);
}

/* ------------------------------------------------------------------- Home */

/* templates/site/home.html. The look is the approved design (docs/superpowers/specs/mockups/landing.dc.html). */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(40px, 7vw, 88px); }
.hero__grid { display: grid; gap: var(--space-8); align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero__text { display: grid; gap: var(--space-5); justify-items: start; }
.hero__eyebrow { padding: 4px var(--space-4); border-radius: var(--radius-pill); background: var(--primary-tint); color: var(--primary-deep); font-size: var(--text-md); font-weight: 700; }
.hero__title { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.35; font-weight: 800; }
.hero__title span { display: block; color: var(--primary); }
.hero__lead { max-inline-size: 48ch; font-size: var(--text-lg); line-height: var(--leading-loose); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__points { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: var(--text-md); color: var(--muted); }
.hero__points li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__points .icon { color: var(--primary); }

/* The picture beside the headline (templates/site/_hero_art.html): cards laid over soft shapes. */
.hero-art { position: relative; inline-size: 100%; max-inline-size: 560px; block-size: 500px; margin-inline: auto; font-size: var(--text-sm); }
.hero-art__blob { position: absolute; inset-block: 44px 30px; inset-inline: 40px; border-radius: 40px; background: var(--primary-tint); transform: rotate(-3deg); }
.hero-art__sun { position: absolute; inset-block-start: 4px; inset-inline-start: 4px; inline-size: 104px; block-size: 104px; border-radius: 50%; background: var(--amber); }
.hero-art__dots { position: absolute; inset-block-end: 0; inset-inline-end: 0; inline-size: 128px; block-size: 128px; background-image: radial-gradient(var(--primary-line) 2.5px, transparent 3px); background-size: 16px 16px; }
.hero-art__recorder,
.hero-art__minutes { position: absolute; display: grid; gap: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.hero-art__recorder { inset-block-start: 176px; inset-inline: 56px 96px; padding: 18px 20px; }
.hero-art__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.hero-art__row--start { justify-content: flex-start; }
.hero-art__live { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--coral-ink); font-weight: 700; }
.hero-art__live span { inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--coral); }
.hero-art__time { font-size: 1.6rem; font-weight: 700; line-height: 1.3; }
.hero-art__wave { block-size: 72px; display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.hero-art__wave span { inline-size: 4px; border-radius: 2px; background: var(--primary); }
.hero-art__wave span:nth-child(4n) { background: var(--amber); }
.hero-art__wave span:nth-child(7n) { background: var(--coral); }
.hero-art__wave .w2 { block-size: 14%; } .hero-art__wave .w3 { block-size: 24%; } .hero-art__wave .w4 { block-size: 36%; }
.hero-art__wave .w5 { block-size: 48%; } .hero-art__wave .w6 { block-size: 60%; } .hero-art__wave .w7 { block-size: 72%; }
.hero-art__wave .w8 { block-size: 86%; } .hero-art__wave .w9 { block-size: 100%; }
.hero-art__stop { flex: none; display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--primary); }
.hero-art__stop span { inline-size: 13px; block-size: 13px; border-radius: 3px; background: var(--surface); }
.hero-art__note { color: var(--muted); }
.hero-art__minutes { inset-block-start: 12px; inset-inline-end: 4px; inline-size: 228px; padding: 16px 18px; gap: var(--space-2); }
.hero-art__ready { display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--primary-tint); color: var(--primary-deep); font-size: var(--text-xs); font-weight: 700; }
.hero-art__line { block-size: 6px; border-radius: 3px; background: var(--line); }
.hero-art__line--short { inline-size: 72%; }
.hero-art__task { display: flex; align-items: center; gap: var(--space-2); }
.hero-art__task > span { flex: none; display: grid; place-items: center; inline-size: 18px; block-size: 18px; border-radius: 6px; border: 2px solid var(--line-strong); }
.hero-art__task--done > span { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.hero-art__speakers,
.hero-art__question { position: absolute; display: grid; gap: 2px; padding: 12px 16px; box-shadow: var(--shadow-card); }
.hero-art__speakers { inset-block-end: 78px; inset-inline-start: 0; inline-size: 226px; border-radius: 20px 20px 6px 20px; background: var(--primary); color: var(--on-primary); }
.hero-art__speakers span { color: var(--on-primary-muted); }
.hero-art__question { inset-block-end: 6px; inset-inline-end: 20px; inline-size: 250px; border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; background: var(--surface); }
.hero-art__question small { color: var(--muted); font-size: var(--text-xs); }
[dir="rtl"] .hero-art__speakers { border-radius: 20px 20px 20px 6px; }
[dir="rtl"] .hero-art__question { border-radius: 20px 20px 6px 20px; }

/* The numbers an administrator entered (only then). */
.home-stats { padding-block: var(--space-6); border-block: 1px solid var(--line-soft); background: var(--surface); }
.home-stats__list { margin-block: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); text-align: center; }
.home-stats__list > div { display: grid; gap: var(--space-1); }
.home-stats__list dt { order: 2; }
.home-stats__list dd { margin: 0; font-size: var(--text-3xl); font-weight: 800; color: var(--primary); }
.home-stats__list dt { color: var(--muted); font-size: var(--text-md); }

.home-head { display: grid; gap: var(--space-2); }
.home-head__title { font-size: clamp(1.5rem, 3.6vw, 2.25rem); line-height: var(--leading-tight); font-weight: 800; }

/* Three steps, each a card with a small picture above its words. */
.steps3 { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps3__item { display: grid; align-content: start; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--bg); overflow: hidden; }
.steps3__art { position: relative; block-size: 150px; display: grid; place-items: center; }
.steps3__art--green { background: var(--primary-tint); }
.steps3__art--amber { background: var(--amber-tint); }
.steps3__art--sky { background: var(--sky-tint); }
.steps3__number { position: absolute; inset-block-start: 16px; inset-inline-start: 16px; display: grid; place-items: center; inline-size: 36px; block-size: 36px; border-radius: 12px; color: var(--on-primary); font-weight: 800; }
.steps3__art--green .steps3__number { background: var(--primary); }
.steps3__art--amber .steps3__number { background: var(--amber-ink); }
.steps3__art--sky .steps3__number { background: var(--sky-strong); }
.steps3__mic { display: grid; place-items: center; inline-size: 84px; block-size: 84px; border-radius: 50%; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-card); }
.steps3__lines { display: grid; gap: var(--space-3); inline-size: 56%; }
.steps3__line { block-size: 12px; border-radius: 6px; }
.steps3__line--green { background: var(--primary); inline-size: 80%; }
.steps3__line--amber { background: var(--amber-strong); inline-size: 100%; }
.steps3__line--sky { background: var(--sky-strong); inline-size: 60%; }
.steps3__page { display: grid; gap: 8px; inline-size: 44%; padding: 18px 16px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-card); }
.steps3__page span { block-size: 5px; border-radius: 3px; background: var(--line-strong); }
.steps3__page span:nth-child(2) { inline-size: 84%; } .steps3__page span:nth-child(4) { inline-size: 60%; }
.steps3__pdf { position: absolute; inset-block-end: 18px; inset-inline-end: 22px; padding: 0 10px; border-radius: 8px; background: var(--coral-ink); color: var(--on-primary); font-size: var(--text-xs); font-weight: 800; }
.steps3__body { display: grid; gap: var(--space-2); padding: 20px 24px 24px; }
.steps3__body h3 { font-size: var(--text-xl); font-weight: 800; }
.steps3__body p { color: var(--muted); line-height: var(--leading-loose); }

/* What else the product gives: cards of unequal size. */
.bento { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
.bento__card { display: grid; gap: var(--space-3); align-content: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); }
.bento__card h3 { font-size: var(--text-xl); font-weight: 800; line-height: 1.6; }
.bento__card p { line-height: var(--leading-loose); color: var(--muted); }
.bento__text { display: grid; gap: var(--space-2); }
.bento__card--amber { border-color: transparent; background: var(--amber-tint); }
.bento__card--sky { border-color: transparent; background: var(--sky-tint); }
.bento__card--coral { border-color: transparent; background: var(--coral-tint); }
.bento__card--amber p { color: var(--amber-ink); }
.bento__card--sky p { color: var(--sky-ink); }
.bento__card--coral p { color: var(--coral-ink); }
.bento__chat { display: grid; gap: var(--space-3); }
.bento__bubble { justify-self: start; max-inline-size: 88%; padding: 10px 16px; border-radius: 18px; background: var(--surface-sunken); line-height: var(--leading-normal); }
.bento__bubble--mine { justify-self: end; background: var(--primary); color: var(--on-primary); }
.bento__bubble small { display: flex; align-items: center; gap: 6px; margin-block-start: 6px; color: var(--muted); font-size: var(--text-xs); }
.bento__tasks { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.bento__tasks li { display: flex; align-items: center; gap: var(--space-3); padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius-md); background: var(--bg); }
.bento__tasks li span:nth-child(2) { flex: 1; min-inline-size: 0; }
.bento__tasks small { color: var(--muted); font-size: var(--text-xs); white-space: nowrap; }
.bento__check { flex: none; display: grid; place-items: center; inline-size: 20px; block-size: 20px; border-radius: 6px; border: 2px solid var(--line-strong); }
.bento__check--done { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.bento__figure { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-block-size: 76px; }
.bento__ring { display: grid; place-items: center; inline-size: 62px; block-size: 62px; border-radius: 50%; border: 2px solid var(--amber-strong); color: var(--amber-ink); }
.bento__pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: var(--radius-pill); background: var(--surface); font-size: var(--text-sm); font-weight: 700; }
.bento__sheet { display: grid; gap: 6px; inline-size: 84px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface); }
.bento__sheet span { block-size: 4px; border-radius: 2px; background: var(--line-strong); }
.bento__sheet span:first-child { block-size: 6px; inline-size: 60%; background: var(--sky-strong); }
.bento__sheet span:nth-child(3) { inline-size: 80%; }
.bento__meter { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); font-size: var(--text-sm); font-weight: 700; color: var(--coral-ink); }
.bento__meter i { grid-column: 1 / -1; display: flex; block-size: 16px; border-radius: 8px; background: var(--surface); overflow: hidden; }
.bento__meter b { inline-size: 22%; background: var(--coral); }
.bento__link { display: inline-flex; align-items: center; gap: var(--space-2); min-block-size: 44px; font-weight: 700; color: var(--coral-ink); }

/* The way in, once more, at the foot of the page. */
.home-cta-wrap { padding-block-start: 0; }
.home-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-xl); background: var(--primary-deep); color: var(--on-primary); }
.home-cta__title { font-size: clamp(1.5rem, 3.6vw, 2.25rem); line-height: var(--leading-tight); font-weight: 800; }
.home-cta__text { margin-block-start: var(--space-2); font-size: var(--text-lg); color: var(--on-primary-muted); }

@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__card--wide { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-6); }
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* On a phone the picture keeps the recorder and the two bubbles, each a little narrower. */
@media (max-width: 520px) {
  .hero-art { block-size: 380px; }
  .hero-art__minutes, .hero-art__dots { display: none; }
  .hero-art__blob { inset-inline: 12px; }
  .hero-art__recorder { inset-block-start: 40px; inset-inline: 16px 32px; }
  .hero-art__speakers { inline-size: 200px; inset-block-end: 70px; }
  .hero-art__question { inline-size: 220px; inset-inline-end: 4px; }
}

/* ------------------------------------------------------------------- Blog */

/* templates/blog/list.html: the categories to go into, and a card for each post. */
.blog-categories { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.post-cards { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { display: grid; align-content: start; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.post-card__picture { display: block; aspect-ratio: 16 / 9; background: var(--surface-sunken); }
.post-card__picture img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.post-card__body { display: grid; gap: var(--space-2); padding: var(--space-5); }
.post-card__categories { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: var(--text-sm); font-weight: 700; }
.post-card__categories a { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--primary); }
.post-card__title { font-size: var(--text-xl); line-height: 1.6; font-weight: 800; }
.post-card__title a { display: block; min-block-size: 44px; color: var(--ink); }
.post-card__title a:hover { color: var(--primary); }
.post-card__text { color: var(--muted); line-height: var(--leading-loose); }

/* templates/blog/post.html: the picture, the list of contents, the posts to read next. */
.post__cover { inline-size: 100%; max-block-size: 420px; object-fit: cover; border-radius: var(--radius-lg); }
.post__contents { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.post__contents-title { margin-block-end: var(--space-2); font-size: var(--text-md); color: var(--muted); }
.post__contents ol { margin: 0; padding: 0; list-style: none; display: grid; }
.post__contents a { display: flex; align-items: center; min-block-size: 44px; color: var(--ink-2); }
.post__contents a:hover { color: var(--primary); }
.post__contents-item--3 { padding-inline-start: var(--space-5); }
.post__contents-item--4, .post__contents-item--5, .post__contents-item--6 { padding-inline-start: var(--space-8); }
/* A heading that a link of the list leads to stops below the fixed header, not under it. */
.post__text :is(h1, h2, h3, h4, h5, h6) { scroll-margin-block-start: 96px; }
.post__related { margin: 0; padding: 0; list-style: none; display: grid; }
.post__related li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-4); min-block-size: 48px; padding-block: var(--space-2); border-block-end: 1px solid var(--line-soft); }
.post__related a { display: inline-flex; align-items: center; min-block-size: 44px; font-weight: 700; color: var(--ink); }
/* Links of the public pages' headers (the way down, the author, the comment count) are tall enough for a finger. */
.site-page__head .breadcrumbs a, .site-page__head .list__meta a { display: inline-flex; align-items: center; min-block-size: 44px; }
.post__related a:hover { color: var(--primary); }

/* templates/blog/_comments.html: comments as a tree; replies step in a little, up to three levels. */
.comments__list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-4); }
.comments__list--replies { margin-block-start: var(--space-4); padding-inline-start: var(--space-5); border-inline-start: 2px solid var(--line-soft); }
.comments__list--replies .comments__list--replies .comments__list--replies .comments__list--replies { padding-inline-start: 0; border-inline-start: 0; }
.comment { display: grid; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--line-soft); border-radius: var(--radius-md); background: var(--surface); }
.comment .comment { padding: 0; border: 0; background: transparent; }
.comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.comment__text { line-height: var(--leading-loose); overflow-wrap: anywhere; }
.comment__reply { display: inline-flex; align-items: center; gap: var(--space-2); min-block-size: 44px; justify-self: start; font-size: var(--text-md); color: var(--muted); }
.comment__reply:hover { color: var(--primary); }
.comment:target { border-color: var(--primary-line); }
#comments, #comment-form { scroll-margin-block-start: 96px; }

/* A line an administrator wrote for every visitor, above the header. */
.site-announcement { padding-block: var(--space-2); background: var(--primary-tint); color: var(--primary-deep); font-size: var(--text-sm); text-align: center; }
.site-announcement p { margin: 0; }
.site-announcement a { text-decoration: underline; text-underline-offset: 3px; }

/* The site's pages on social networks, in the footer. */
.site-footer__socials { margin: 0; padding: var(--space-4) 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.site-footer__socials a { display: inline-flex; align-items: center; gap: var(--space-2); min-block-size: 44px; }
.site-footer__socials img { inline-size: 20px; block-size: 20px; object-fit: contain; }

/* ------------------------------------------------------------- Site pages */

/* templates/site/page.html: a page of running text (guide, about, privacy, terms). */
.site-page__head { display: grid; gap: var(--space-3); padding-block-end: var(--space-6); border-block-end: 1px solid var(--line-soft); }
.site-page__title { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: var(--leading-tight); }
.site-page__lead { font-size: var(--text-lg); color: var(--muted); max-inline-size: 60ch; }
.site-page__subtitle { font-size: var(--text-xl); }
.site-page__text { max-inline-size: none; }
.site-page__text img { max-inline-size: 100%; block-size: auto; border-radius: var(--radius-md); }
.site-page__text table { display: block; max-inline-size: 100%; overflow-x: auto; border-collapse: collapse; }
.site-page__text th,
.site-page__text td { padding: var(--space-2) var(--space-3); border: 1px solid var(--line); text-align: start; }
.site-page__empty { color: var(--muted); }

/* templates/site/faq.html: the search, and each answer folded under its question. */
.faq__search { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-block-start: var(--space-3); }
.faq__search .search { flex: 1 1 260px; }
.faq__found { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.faq__found a { display: inline-flex; align-items: center; min-block-size: 44px; }
.faq { display: grid; gap: var(--space-3); }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.faq__item[open] { border-color: var(--line-strong); }
.faq__question { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-block-size: 56px; padding: var(--space-3) var(--space-5); font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--radius-md); }
.faq__question::-webkit-details-marker { display: none; }
.faq__question .icon { flex: none; color: var(--muted); transition: transform var(--duration) ease; }
.faq__item[open] > .faq__question .icon { transform: rotate(180deg); }
.faq__answer { max-inline-size: none; padding: 0 var(--space-5) var(--space-5); color: var(--ink-2); }
.faq__more { padding-block-start: var(--space-5); border-block-start: 1px solid var(--line-soft); }
@media (prefers-reduced-motion: reduce) { .faq__question .icon { transition: none; } }

/* templates/site/contact.html: the form beside the ways to reach the site; under each other on a phone. */
.contact { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.contact__list { margin: 0; display: grid; gap: var(--space-4); }
.contact__list > div { display: grid; gap: var(--space-1); }
.contact__list dt { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--muted); }
.contact__list dd { margin: 0; display: grid; gap: var(--space-1); justify-items: start; overflow-wrap: anywhere; }
.contact__list a { display: inline-flex; align-items: center; min-block-size: 44px; }
.contact__map { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.contact__map iframe { display: block; inline-size: 100%; min-block-size: 280px; border: 0; }
/* A field for programs that fill in every field: out of sight, never in a person's way. */
.contact__trap { position: absolute; inset-inline-start: -10000px; inline-size: 1px; block-size: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* templates/site/pricing.html: three steps, what costs and what does not, examples, the way in. */
.pricing__steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pricing__steps > li { display: grid; gap: var(--space-2); align-content: start; }
.pricing__number { display: inline-grid; place-items: center; inline-size: 36px; block-size: 36px; border-radius: 50%; background: var(--primary-tint); color: var(--primary-deep); font-weight: 700; }
.pricing__lists { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pricing__list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.pricing__list li { display: flex; align-items: flex-start; gap: var(--space-2); }
.pricing__list .icon { flex: none; margin-block-start: 4px; color: var(--primary); }
.pricing__start { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--primary-tint); color: var(--primary-deep); }
.pricing__start p { margin: 0; max-inline-size: 52ch; font-weight: 700; }

/* The people of the "about" page. */
.team { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-5); }
.team__member { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-5) var(--space-4); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.team__photo { inline-size: 96px; block-size: 96px; border-radius: 50%; object-fit: cover; }
.team__title { font-size: var(--text-sm); color: var(--muted); }

.site-footer {
  padding-block: var(--space-8) var(--space-5);
  border-block-start: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--text-md);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6) var(--space-8);
}

.site-footer__about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  max-inline-size: 46ch;
  min-inline-size: 0;
}

.site-footer__links,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-inline-size: 0;
}

.site-footer__contact strong { color: var(--ink); }

.site-footer a:not(.brand) {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--control);
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.site-footer a:not(.brand):hover { color: var(--primary); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-block-start: var(--space-7);
  padding-block-start: var(--space-4);
  border-block-start: 1px solid var(--line-soft);
  font-size: var(--text-sm);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-4);
}

.site-footer__text > * + * { margin-block-start: var(--space-2); }

/* ========================================================== Signed-in app */

.app {
  display: flex;
  min-block-size: 100vh;
  min-block-size: 100dvh;
}

/* On a phone the side menu is a drawer that slides in from the start side. */
.app-sidebar {
  --drawer: min(300px, 86vw);
  position: fixed;
  inset-block: 0;
  inset-inline-start: calc(-1 * var(--drawer) - 40px);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  inline-size: var(--drawer);
  padding: var(--space-5) var(--space-4);
  border-inline-end: 1px solid var(--line);
  background: var(--surface);
  overflow-y: auto;
  visibility: hidden;
  transition: inset-inline-start var(--duration) var(--ease), visibility 0s linear var(--duration);
}

.app-sidebar--open {
  inset-inline-start: 0;
  visibility: visible;
  box-shadow: var(--shadow-pop);
  transition-delay: 0s;
}

.app-scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) - 1);
  background: var(--scrim);
}

.app-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-inline-size: 0;
}

.app-sidebar__foot { margin-block-start: auto; }

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-nav__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-block-size: var(--control);
  min-inline-size: 0;
  padding: 0 var(--space-3);
  border-radius: 12px;
  color: var(--ink-2);
  font-size: var(--text-body);
  transition: background-color var(--duration-fast) var(--ease);
}

.app-nav__item:hover {
  background: var(--surface-sunken);
  color: var(--ink);
}

.app-nav__item--active,
.app-nav__item--active:hover {
  background: var(--primary-tint);
  color: var(--primary-deep);
  font-weight: 700;
}

.app-nav__label {
  flex: 1;
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The balance card at the foot of the side menu. */
.wallet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-4);
  border-radius: 18px;
  background: var(--primary-tint);
  overflow: hidden;
}

.wallet-card::before,
.wallet-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.wallet-card::before {
  inset-block-start: -18px;
  inset-inline-end: -18px;
  inline-size: 72px;
  block-size: 72px;
  background: var(--amber);
}

.wallet-card::after {
  inset-block-start: 26px;
  inset-inline-end: 34px;
  inline-size: 26px;
  block-size: 26px;
  background: var(--coral);
}

.wallet-card > * { position: relative; z-index: 1; }
.wallet-card__label { font-size: var(--text-sm); color: var(--primary-deep); }
/* A large balance breaks between the number and its unit instead of being cut by the card. */
.wallet-card__value { font-size: var(--text-xl); font-weight: 800; line-height: 1.6; font-variant-numeric: tabular-nums; }
.wallet-card__debt { font-size: var(--text-sm); font-weight: 600; color: var(--coral-ink); }

.btn.wallet-card__action {
  margin-block-start: var(--space-2);
  min-block-size: 40px;
  background: var(--surface);
  color: var(--primary-deep);
  font-size: var(--text-md);
  font-weight: 700;
}

.app-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-inline-size: 0;
}

.app-topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-block-size: 64px;
  padding: var(--space-2) var(--gutter);
  border-block-end: 1px solid var(--line-soft);
  background: var(--bg);
}

.app-topbar__title {
  flex: 1;
  min-inline-size: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-topbar__title .breadcrumbs ol { flex-wrap: nowrap; }
.app-topbar__title .breadcrumbs li { flex: none; }

.app-topbar__title .breadcrumbs li:last-child {
  flex: 1;
  overflow: hidden;
}

.app-topbar__title .breadcrumbs li:last-child > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-topbar__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--space-2);
}

.app-topbar__bell { position: relative; }

.app-topbar__dot {
  position: absolute;
  inset-block-start: 9px;
  inset-inline-end: 10px;
  inline-size: 11px;
  block-size: 11px;
  border: 2px solid var(--surface);
}

.app-user__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--control);
  max-inline-size: 240px;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-2);
  font-size: var(--text-md);
  font-weight: 600;
}

.app-user__button:hover {
  border-color: var(--line);
  background: var(--surface);
}

.app-user__button > .icon,
.app-user__name {
  display: none;
}

.app-user__name {
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-columns {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-inline-size: 0;
  padding-block-end: var(--bottom-bar, 0px);
}

.app-content {
  flex: 1 1 0%;
  min-inline-size: 0;
  padding: var(--space-5) var(--gutter) var(--space-7);
}

/* The optional side column of a page: summary, tasks, the question box. */
.app-aside {
  min-inline-size: 0;
  padding: var(--space-5) var(--gutter) var(--space-7);
  border-block-start: 1px solid var(--line);
  background: var(--surface);
}

/* The bottom bar on phones: four destinations and the full menu. */
.app-bottomnav {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: var(--z-nav);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding-block-end: env(safe-area-inset-bottom, 0px);
  border-block-start: 1px solid var(--line);
  background: var(--surface);
}

.app-bottomnav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-block-size: 60px;
  min-inline-size: 0;
  padding: var(--space-1);
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.5;
}

.app-bottomnav__item > span {
  max-inline-size: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-bottomnav__item:hover { color: var(--ink); }
.app-bottomnav__item--active { color: var(--primary); font-weight: 700; }

/* Room for the bottom bar under the page and under the toasts. */
body.is-app { --bottom-bar: calc(60px + env(safe-area-inset-bottom, 0px)); }

/* ========================================================== Sign-in pages */

/* layouts/reader.html: a page somebody reads without an account (a shared meeting). */
.reader {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  inline-size: min(880px, 100%);
  min-block-size: 100dvh;
  margin-inline: auto;
  padding: var(--space-6) var(--space-4);
}

.reader__head { display: flex; align-items: center; justify-content: space-between; }
.reader__main { flex: 1; min-inline-size: 0; }
.reader__main .stack > .chip { align-self: flex-start; }      /* a mark hugs its words; it is not a bar across the page */
.reader__title { font-size: var(--text-2xl); line-height: 1.5; overflow-wrap: anywhere; }
.reader__foot { font-size: var(--text-sm); color: var(--muted-2); text-align: center; }
.reader__foot:empty { display: none; }
.reader__audio { inline-size: 100%; max-inline-size: 420px; margin-block-start: var(--space-2); }
.reader__notice { max-inline-size: 520px; margin-inline: auto; align-items: flex-start; }

.auth {
  position: relative;
  display: grid;
  place-items: center;
  min-block-size: 100vh;
  min-block-size: 100dvh;
  padding: var(--space-7) var(--gutter);
  overflow: hidden;
}

/* min-inline-size: 0 lets a long site name shrink and be cut with an ellipsis
   instead of stretching the column past the screen. */
.auth__column {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  inline-size: min(440px, 100%);
  min-inline-size: 0;
}

.auth__brand {
  display: flex;
  justify-content: center;
  min-inline-size: 0;
}

.auth__card {
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.auth__below {
  color: var(--muted);
  font-size: var(--text-md);
  text-align: center;
}

.auth__below:empty { display: none; }

/* Flat shapes behind the card. They are decoration and hidden from screen readers. */
.auth__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth__shape {
  position: absolute;
  display: none;
}

.auth__shape--blob {
  inset: 0;
  margin: auto;
  inline-size: min(600px, 92vw);
  block-size: min(520px, 80vh);
  border-radius: 56px;
  background: var(--primary-tint);
  transform: rotate(-3deg);
}

.auth__shape--sun {
  inset-block-start: 9%;
  inset-inline-start: 9%;
  inline-size: 104px;
  block-size: 104px;
  border-radius: 50%;
  background: var(--amber);
}

.auth__shape--dots {
  inset-block-end: 9%;
  inset-inline-end: 9%;
  inline-size: 128px;
  block-size: 128px;
  background-image: radial-gradient(var(--primary) 1.6px, transparent 1.6px);
  background-size: 16px 16px;
  opacity: 0.45;
}

.auth__shape--arc {
  inset-block-end: 7%;
  inset-inline-start: 20%;
  inline-size: 92px;
  block-size: 46px;
  border: 12px solid var(--coral);
  border-block-end: 0;
  border-start-start-radius: 46px;
  border-start-end-radius: 46px;
}

/* ================================================================ 640px + */

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .app-user__button { padding-inline-end: var(--space-3); }
  .app-user__button > .icon,
  .app-user__name { display: inline-block; }
  .auth__shape { display: block; }
}

/* ================================================================ 900px + */

@media (min-width: 900px) {
  .site-header__bar { min-block-size: 76px; }
  .site-nav { display: flex; gap: var(--space-7); }
  .site-header__actions { display: flex; align-items: center; gap: var(--space-2); }

  /* Alpine may have left the phone menu open; it never shows on a wide screen. */
  .site-header__toggle,
  .site-menu { display: none !important; }

  .app-sidebar {
    position: sticky;
    inset-block-start: 0;
    inset-inline-start: auto;
    z-index: auto;
    flex: 0 0 var(--sidebar);
    inline-size: var(--sidebar);
    block-size: 100vh;
    block-size: 100dvh;
    visibility: visible;
    box-shadow: none;
    transition: none;
  }

  .app-sidebar__close,
  .app-topbar__menu,
  .app-bottomnav,
  .app-scrim { display: none !important; }

  body.is-app { --bottom-bar: 0px; }
}

/* =============================================================== 1200px + */

@media (min-width: 1200px) {
  .app-columns { flex-direction: row; }

  .app-aside {
    flex: 0 0 340px;
    padding-inline: var(--space-6);
    border-block-start: 0;
    border-inline-start: 1px solid var(--line);
  }
}

/* ============================================================ Error pages */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-block-size: 100vh;
  min-block-size: 100dvh;
  padding: var(--space-7) var(--gutter);
  text-align: center;
}

.error-page__brand {
  max-inline-size: 100%;
  margin-block-end: var(--space-5);
}
.error-page__art { inline-size: 240px; max-inline-size: 70%; block-size: auto; }

.error-page__code {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.error-page__code .mark { padding-inline: var(--space-3); }
.error-page__title { font-size: var(--text-3xl); }
.error-page__text { max-inline-size: 46ch; color: var(--muted); }

.error-page__actions {
  justify-content: center;
  margin-block-start: var(--space-3);
}

/* Headings of the sign-in card */
.auth__title {
  font-size: var(--text-2xl);
  text-align: center;
}

.auth__lead {
  color: var(--muted);
  text-align: center;
}

/* The email or phone number a code was sent to: its own line, cut with an ellipsis when too long. */
.auth__destination {
  display: block;
  margin-block-start: var(--space-1);
  overflow: hidden;
  color: var(--ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
