/* Pages for one audience: /agents/, /brokers/, /fsbo/, /about/. Loads after styles.css. Tokens only, no hex colour. */

/* a list of short items: a title and one sentence each, with a hairline between them */
.items { display: grid; gap: 0; }
.items > li, .items > div { padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.items > :last-child { border-bottom: 1px solid var(--line); }
.items h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.items p { margin-top: var(--s-1); max-width: 62ch; }
@media (min-width: 640px) {
  .items--2 { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
  .items--2 > :nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .items--2 > :nth-last-child(2):nth-child(even) { border-bottom: 0; }
}
@media (min-width: 900px) {
  .items--3 { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-6); }
  .items--3 > :nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .items--3 > :last-child { border-bottom: 1px solid var(--line); }
}

/* on the ink band the hairlines take the band ink */
.ground-inverse .items > li, .ground-inverse .items > div { border-top-color: color-mix(in oklab, var(--ink) 22%, transparent); }
.ground-inverse .items > :last-child { border-bottom-color: color-mix(in oklab, var(--ink) 22%, transparent); }

/* ordered steps: the number is information, because the order matters */
.steps { display: grid; gap: 0; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; column-gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.steps > :last-child { border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(step); grid-row: 1 / span 2; font: 500 var(--t-card)/1.3 var(--font-text); color: var(--muted); }
.steps h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.steps p { margin-top: var(--s-1); max-width: 56ch; }
@media (min-width: 1024px) {
  .steps--row { grid-template-columns: repeat(var(--n, 4), 1fr); column-gap: var(--s-5); border-top: 0; }
  .steps--row > li { grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
  .steps--row > li::before { grid-row: auto; margin-bottom: var(--s-2); }
  .steps--row > :last-child { border-bottom: 1px solid var(--line); }
}

/* a list of facts with a check */
.ticks { display: grid; gap: 0; }
.ticks > li { display: grid; grid-template-columns: 24px 1fr; column-gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.ticks > :last-child { border-bottom: 1px solid var(--line); }
.ticks > li > .i { margin-top: 2px; }
.ticks h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.ticks p { margin-top: var(--s-1); max-width: 62ch; }
@media (min-width: 640px) {
  .ticks--2 { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
  .ticks--2 > :nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .ticks--2 > :nth-last-child(2):nth-child(even) { border-bottom: 0; }
}

/* a feature row whose words are a list: the list and the capture start on one line */
.feature--list { align-items: start; }
.feature--list > .mat { align-self: start; }
.feature .items:first-of-type, .feature .ticks:first-of-type { margin-top: var(--s-4); }

/* two cards that each hold one whole part */
.grid--pair > .card { grid-column: auto / span 6; }
@media (max-width: 1023px) { .grid--pair > .card { grid-column: 1 / -1; } }

/* a line of text links and a quiet button row inside a section */
.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); margin-top: var(--s-6); }
.section-actions > p { max-width: 62ch; }

/* the broker price table */
.tiers { width: 100%; border-collapse: collapse; }
.tiers th, .tiers td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-weight: 400; }
.tiers th:last-child, .tiers td:last-child { padding-right: 0; }
.tiers thead th { border-bottom-color: var(--line-strong); font-weight: 500; vertical-align: bottom; }
.tiers tbody th { font-weight: 500; }
.tiers small { display: block; font-size: inherit; color: var(--muted); }
@media (max-width: 639px) { .tiers th, .tiers td { padding-right: 10px; } }

/* the demo calendar: it keeps its height before it loads, so the page does not move */
.demo-frame { position: relative; margin-top: var(--s-6); height: 1000px; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.demo-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--bg); }
.demo-frame__idle { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s-4); padding: var(--s-5); text-align: center; }
.demo-frame.is-loaded .demo-frame__idle { display: none; }

.demo-note { margin-top: var(--s-4); }

/* a section that holds text only needs less air */
main > .section.section--tight { padding-top: var(--s-8); padding-bottom: var(--s-6); }
.hero--page:not(:has(.hero__window)) + .section.section--tight { padding-top: var(--s-7); }

/* four items in a row */
@media (min-width: 1024px) {
  .items--4 { grid-template-columns: repeat(4, 1fr); column-gap: var(--s-5); }
  .items--4 > li { border-bottom: 1px solid var(--line); }
  .ground-inverse .items--4 > li { border-bottom-color: color-mix(in oklab, var(--ink) 22%, transparent); }
}

/* a small whole part of the App on its own mat */
.mat--part { display: grid; justify-items: center; }
.mat--part > .shotwin { width: 100%; max-width: var(--shot-w, none); }

/* one short statement */
.statement { max-width: 62ch; }

/* under 640px the calendar opens only when the visitor presses the button */
@media (max-width: 639px) {
  .demo-frame:not(.is-loaded) { height: auto; }
  .demo-frame:not(.is-loaded) .demo-frame__idle { position: static; }
  .demo-frame:not(.is-loaded) iframe { display: none; }
  .demo-frame.is-loaded { height: 1100px; }
}

/* a line of running text stays under 75 characters */
main .section p, main .section p.section-actions { max-width: 56ch; }
main .section p.t-lead, .section-head > p { max-width: 50ch; }
.hero--page .hero__note { max-width: 50ch; margin-inline: auto; }

/* Finish review, 2026-11-15: a capture stands clear of the list above it and of the block after it */
:is(.items, .steps) + .mat, .mat + .feature { margin-top: var(--s-7); }
/* the titles of a row of steps start on one line */
.steps--row > li { align-content: start; }
/* under 640px the note under the calendar shows only after the calendar loads (the button and one link are enough before that) */
@media (max-width: 639px) { .demo-frame:not(.is-loaded) ~ .demo-note { display: none; } }
.section-actions + .section-note { margin-top: var(--s-4); max-width: 62ch; }
.section-note a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
