/* Sections for the marketing pages (pages/lib/sections.mjs), on the homepage's tokens and grid (styles.css).
   Sections are separated by space and the header's hairline, not boxed. Panels and screenshots carry the depth. */

.alternative-page > .section { padding-block: var(--section) 0; }
.alternative-page > .section + .section { margin-top: var(--s5); }
.alternative-page .sh { margin-bottom: clamp(32px, 3.4vw, 48px); }
.alternative-page .sh .h2 { max-width: 15em; }
.alternative-page .sh__note { max-width: 46em; font-size: var(--t-body); color: var(--body); }
.page .section p a:not(.btn) { color: var(--ink); }

/* ---------- The short answer: heading left, lead and paragraphs right ---------- */
.answer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.answer > .h2 { grid-column: 1 / span 5; }
.answer > div { grid-column: 7 / -1; }
.answer__lead { font-size: var(--t-h3); line-height: 1.4; letter-spacing: -.02em; color: var(--ink); text-wrap: pretty; }
.answer__p { max-width: 36em; margin-top: var(--s4); font-size: var(--t-lead); line-height: 1.6; color: var(--body); text-wrap: pretty; }

/* ---------- Facts: four figures between hairlines ---------- */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 5vw, 72px); border-block: 1px solid var(--hair); }
.figures > div { padding: var(--s6) var(--s5) var(--s6); border-left: 1px solid var(--hair); }
.figures > div:first-child { padding-left: 0; border-left: 0; }
.figures dt { font-size: var(--t-micro); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.figures dd { margin: 0; }
.figures__n { display: block; margin-top: var(--s5); font-size: clamp(2.25rem, 1.7rem + 1.8vw, 3.25rem); font-weight: 400; line-height: 1; letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.figures__d { display: block; max-width: 22em; margin-top: var(--s3); font-size: var(--t-small); line-height: 1.55; color: var(--body); }

/* whatever follows a facts row gets the same space a new section would */
.figures + .wide, .figures + .cols, .figures + .rows, .figures + .ways, .figures + div { margin-top: clamp(48px, 5vw, 72px); }
.cols .panel + h3 { margin-top: var(--s5); }

/* a block that follows a wide screenshot or the short answer gets the same gap a new section would */
.wide + :is(.rows, .ways, .tl, .cols, .limits, .tbl, .figures, .reads, .story),
.answer + :is(.wide, .rows, .ways, .tl, .cols, .limits, .tbl, .reads, .story) { margin-top: clamp(48px, 5vw, 72px); }

/* ---------- Screenshots from the app ---------- */
.appshot { margin: 0; min-width: 0; }
.appshot__frame { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 30px 70px -34px rgba(0, 0, 0, .95), 0 0 90px -40px rgba(176, 230, 127, .28); }
.appshot__frame::after { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(227, 241, 213, .26), rgba(227, 241, 213, .06) 40%, rgba(176, 230, 127, .16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.appshot img { display: block; width: 100%; height: auto; }
.appshot figcaption { margin-top: var(--s3); font-size: var(--t-small); line-height: 1.5; color: var(--muted); }

/* the hero: two real dashboard cards on a lit stage, the second floating over the first's corner */
.hero-stage { min-width: 0; margin: 0; padding: clamp(24px, 3.4vw, 44px) clamp(20px, 3vw, 40px) clamp(20px, 2.4vw, 28px);
  border-radius: calc(2 * var(--r-lg)); background: radial-gradient(70% 60% at 62% 100%, rgba(176, 230, 127, .16), transparent 72%), var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.hero-stage__cards { position: relative; padding-bottom: var(--drop, 18%); }
.hero-stage__main { width: 74%; }
.hero-stage__float { position: absolute; right: 0; bottom: 0; width: 50%; }
.hero-stage__float .appshot__frame { box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 30px 60px -18px rgba(0, 0, 0, .95), 0 0 60px -20px rgba(176, 230, 127, .3); }
.hero-stage--single .hero-stage__cards { padding-bottom: 0; }
.hero-stage--single .hero-stage__main { width: 100%; }
.hero-stage > figcaption { margin-top: var(--s5); max-width: 40em; font-size: var(--t-small); line-height: 1.5; color: var(--muted); }

/* the stacked hero (1.5): heading left, intro and actions right, the wide screenshot full width under both */
.alternative-hero--stacked { grid-template-columns: minmax(0, 1fr); align-items: start; gap: clamp(40px, 4.4vw, 64px); }
.alternative-hero--stacked > div:first-child { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.alternative-hero--stacked > div:first-child > * { grid-column: 7 / -1; }
.alternative-hero--stacked > div:first-child > .alternative-hero__title { grid-column: 1 / span 6; grid-row: 1 / span 5; }
.alternative-hero--stacked .alternative-hero__intro { margin-top: var(--s2); }
.alternative-hero--stacked .hero-stage { padding: clamp(20px, 2.6vw, 36px); }

/* a wide screenshot with the text that explains it beside it */
.wide { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.wide > .appshot { grid-column: 1 / -1; }
.wide__notes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--s5); }
.wide__notes p { padding-top: var(--s4); border-top: 1px solid var(--hair); font-size: var(--t-small); line-height: 1.6; color: var(--body); }
.wide__notes strong { display: block; margin-bottom: var(--s1); font-weight: 500; color: var(--ink); }
.wide + .wide { margin-top: clamp(48px, 5vw, 72px); }

/* ---------- Example record panels (made-up businesses, marked Example) ---------- */
.alternative-page .rows { margin-top: 0; }
.alternative-page .row__desc a { color: var(--ink); }
.srcs, .stats { display: grid; gap: var(--s2); margin-top: var(--s4); }
.srcs li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); min-height: 48px; padding: var(--s2) var(--s3);
  border-radius: var(--r-md); background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); font-size: var(--t-small); }
.srcs__n { font-size: var(--t-micro); color: var(--muted); font-variant-numeric: tabular-nums; }
.srcs__name { min-width: 0; }
.srcs__name small { display: block; color: var(--muted); }
.srcs .is-client { background: rgba(176, 230, 127, .05); box-shadow: inset 0 0 0 1px rgba(176, 230, 127, .28); }
.ov { margin-top: var(--s4); padding: var(--s4); border-radius: var(--r-md); background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); }
.ov__label { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-micro); color: var(--muted); }
.ov__text { margin-top: var(--s2); font-size: var(--t-small); line-height: 1.6; color: var(--body); }
.ov__text sup { margin-left: 1px; font-size: 10px; color: var(--muted); }
.pack .is-client { background: rgba(176, 230, 127, .05); box-shadow: inset 0 0 0 1px rgba(176, 230, 127, .28); }
.stats li { display: grid; grid-template-columns: 10px minmax(0, 13em) minmax(0, 1fr); align-items: baseline; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--hair); font-size: var(--t-small); }
.stats li:last-child { border-bottom: 0; }
.stats b { font-weight: 500; color: var(--ink); }
.stats span:last-child { color: var(--body); }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transform: translateY(-1px); }
.sdot--ok { background: var(--success); box-shadow: 0 0 8px rgba(165, 219, 120, .5); }
.sdot--warn { background: #E8B15A; }
.sdot--none { background: #4A524B; }
.sdot--bad { background: var(--danger); }

/* ---------- Illustrative scenario ---------- */
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.story__side { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--s6)); }
.story__label { display: inline-flex; min-height: 26px; align-items: center; padding: 0 var(--s3); border-radius: var(--r-sm); font-size: var(--t-micro); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--lime-light); background: var(--lime-soft); }
.story__q { margin-top: var(--s5); font-size: var(--t-h3); line-height: 1.4; letter-spacing: -.02em; color: var(--ink); }
.story__beats { grid-column: 7 / -1; display: grid; }
.story__beats > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: var(--s5); padding-block: var(--s5); border-top: 1px solid var(--hair); }
.story__beats > div:last-child { border-bottom: 1px solid var(--hair); }
.story__beats h3 { font-size: var(--t-micro); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .35em; }
.story__beats p { font-size: var(--t-lead); line-height: 1.6; color: var(--body); }

/* ---------- Steps on one line: above and below it in turn ---------- */
.tl { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: auto 56px auto; column-gap: var(--gap); }
.tl::before { content: ""; grid-row: 2; grid-column: 1 / -1; align-self: center; height: 1px; background: linear-gradient(90deg, var(--lime) 0%, rgba(176, 230, 127, .45) 55%, var(--line) 80%, transparent); box-shadow: 0 0 10px rgba(176, 230, 127, .2); }
/* the step line draws in from the left as it arrives, like the homepage's step rail (page-motion.js adds .is-in) */
.tl::before { transform-origin: left; transition: transform 2.4s var(--ease-out) .2s; }
.js .tl:not(.is-in)::before { transform: scaleX(0); }
.tl__step { position: relative; grid-column: var(--c) / span 2; padding: 0 var(--s4) 0 var(--s5); border-left: 1px solid var(--line); }
.tl__step:nth-child(odd) { grid-row: 3; align-self: start; padding-top: var(--s1); }
.tl__step:nth-child(even) { grid-row: 1; align-self: end; padding-bottom: var(--s1); margin-bottom: 0; }
.tl__step::before { content: ""; position: absolute; left: -1px; width: 1px; height: 28px; background: var(--line); }
.tl__step::after { content: ""; position: absolute; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(176, 230, 127, .14), 0 0 12px var(--lime-ring); }
.tl__step:nth-child(odd)::before { top: -28px; }
.tl__step:nth-child(odd)::after { top: -32px; }
.tl__step:nth-child(even)::before { bottom: -28px; }
.tl__step:nth-child(even)::after { bottom: -32px; }
.tl__step:nth-child(even) { padding-bottom: var(--s5); }
.tl__step:nth-child(odd) { padding-top: var(--s5); }
.tl__n { font-size: var(--t-micro); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--lime-light); }
.tl__h { margin-top: var(--s2); font-size: var(--t-lead); font-weight: 500; line-height: 1.35; letter-spacing: -.015em; }
.tl__p { margin-top: var(--s2); font-size: var(--t-small); line-height: 1.6; color: var(--body); }
.tl__tool { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px dashed var(--line); font-size: var(--t-small); line-height: 1.55; color: var(--body); }
.tl__tool span { display: block; margin-bottom: 2px; font-size: var(--t-micro); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tl + .tl-after { margin-top: clamp(40px, 4vw, 56px); }

/* ---------- Ways of doing the job, side by side ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.way { padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.way--ours { background: radial-gradient(90% 70% at 100% 0%, rgba(176, 230, 127, .1), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px rgba(176, 230, 127, .3); }
.way__h { font-size: var(--t-h3); font-weight: 500; letter-spacing: -.02em; }
.way--ours .way__h { color: var(--lime-light); }
.way dl { margin-top: var(--s4); }
.way dl > div { padding-block: var(--s3); border-top: 1px solid var(--hair); }
.way dt { font-size: var(--t-micro); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.way dd { margin: var(--s1) 0 0; font-size: var(--t-small); line-height: 1.55; color: var(--body); }
.ways-after { margin-top: var(--s5); max-width: 52em; color: var(--body); }

/* ---------- Two columns of short text ---------- */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) clamp(var(--s6), 5vw, var(--s8)); }
.cols > div { padding-top: var(--s5); border-top: 1px solid var(--hair); }
.cols h3 { font-size: var(--t-h3); font-weight: 500; letter-spacing: -.02em; }
.cols p { margin-top: var(--s3); font-size: var(--t-body); line-height: 1.65; color: var(--body); }
.cols .badge { margin-top: var(--s3); }

/* ---------- Limits ---------- */
.limits { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.limits__intro { grid-column: 1 / span 5; font-size: var(--t-lead); line-height: 1.6; color: var(--body); }
.limits__list { grid-column: 7 / -1; }
.limits__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s4); padding-block: var(--s4); border-top: 1px solid var(--hair); }
.limits__list li:last-child { border-bottom: 1px solid var(--hair); }
.limits__mark { width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); position: relative; }
.limits__mark::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 1.5px; border-radius: 1px; background: var(--muted); }
.limits__h { font-weight: 500; color: var(--ink); }
.limits__list p + p { margin-top: var(--s1); font-size: var(--t-small); line-height: 1.6; color: var(--body); }

/* ---------- Where to go next ---------- */
.reads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.read { position: relative; display: flex; flex-direction: column; min-height: 220px; padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair);
  transition: box-shadow .4s var(--ease-out), transform .6s var(--spring); }
.read:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(176, 230, 127, .32), 0 24px 48px -28px rgba(0, 0, 0, .9); }
.read__tag { font-size: var(--t-micro); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.read__h { margin-top: var(--s4); font-size: var(--t-h3); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.page .read__h a { text-decoration: none; color: var(--ink); }
.read__h a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.read__h a:focus-visible { outline: none; }
.read:has(a:focus-visible) { outline: 2px solid var(--lime); outline-offset: 3px; }
.read__p { margin-top: var(--s2); font-size: var(--t-small); line-height: 1.6; color: var(--body); }
.read__go { display: grid; place-items: center; width: 32px; height: 32px; margin-top: auto; align-self: flex-end; border-radius: var(--r-md); font-size: 14px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, color .3s; }
.read:hover .read__go { background: var(--lime); color: var(--forest); box-shadow: none; }

.alternative-page .alternative-enterprise { margin-top: var(--section); }
.alternative-page #faq { padding-bottom: 0; }

/* ---------- /demo: the homepage's waitlist band as a page (styles.css .band, .join, .brief) ---------- */
.page-crumbs { padding-top: var(--s6); }
.page-crumbs .crumbs ol { margin-bottom: 0; }
/* overflow: clip keeps the light inside the band without making it a scroll container, so the form can stick */
.demo-band { margin-top: var(--s6); overflow: clip; }
.join__sub { margin-top: var(--s5); color: var(--body); line-height: 1.6; }
.demo-join .join__copy { grid-row: 1; }
.demo-join .demo__brief { grid-column: 7 / -1; grid-row: 1 / span 2; align-self: start; }
.demo-join .demo__more { grid-column: 1 / span 5; grid-row: 2; margin-top: clamp(48px, 5vw, 72px); }
/* the form stays in view while the copy, the run's cards and the privacy note scroll past it */
@media (min-width: 901px) and (min-height: 760px) {
  .demo-join .demo__brief { position: sticky; top: calc(var(--header-h) + var(--s5)); }
}
.demo__brief .brief__note { margin-top: var(--s3); }
.demo__after { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--hair); font-size: var(--t-small); text-align: center; color: var(--body); }
.demo__after a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime-ring); text-underline-offset: 3px; }
.demo__more .kicker { margin-bottom: var(--s5); }
.demo__cards { display: grid; gap: var(--gap); }
.demo__cards .appshot { max-width: 521px; }
.trio-note { margin-top: var(--s4); font-size: var(--t-small); line-height: 1.55; color: var(--muted); }
.privacy { margin-top: clamp(40px, 4vw, 56px); padding-top: var(--s5); border-top: 1px solid var(--hair); }
.privacy p { margin-top: var(--s3); color: var(--body); line-height: 1.65; }
.field select { width: 100%; min-height: 48px; padding: var(--s3) 40px var(--s3) var(--s4); border: 0; border-radius: var(--r-lg); background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%238A9188' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: var(--t-body); font-weight: 400; -webkit-appearance: none; appearance: none; cursor: pointer; }
.field select:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.field select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--lime), 0 0 0 4px var(--lime-ring); }

/* ---------- Homepage: a screenshot beside each row, wide screenshots under a split ---------- */
.row > .appshot { grid-column: 7 / -1; }
.home-wide { margin-top: clamp(40px, 4vw, 56px); }
.split > div > .split__p + .split__p { margin-top: var(--s4); }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .tl::before { transform-origin: top; }
  .js .tl:not(.is-in)::before { transform: scaleY(0); }
  .tl { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: var(--s6); padding-left: 32px; }
  .tl::before { position: absolute; left: 4px; top: 6px; bottom: 0; width: 1px; height: auto; grid-row: auto; background: linear-gradient(180deg, var(--lime), rgba(176, 230, 127, .4) 60%, transparent); }
  .tl__step, .tl__step:nth-child(odd), .tl__step:nth-child(even) { grid-column: 1; grid-row: auto; align-self: start; max-width: 40em; padding: 0; border-left: 0; }
  .tl__step::before { display: none; }
  .tl__step:nth-child(odd)::after, .tl__step:nth-child(even)::after { top: 4px; bottom: auto; left: -32px; }
  .reads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .alternative-hero--stacked > div:first-child { grid-template-columns: minmax(0, 1fr); }
  .alternative-hero--stacked > div:first-child > *, .alternative-hero--stacked > div:first-child > .alternative-hero__title { grid-column: 1; grid-row: auto; }
  .alternative-hero--stacked .alternative-hero__intro { margin-top: var(--s5); }
  .row > .appshot { grid-column: 1 / -1; }
  .demo-join .join__copy, .demo-join .demo__brief, .demo-join .demo__more { grid-column: 1 / -1; grid-row: auto; }
  .answer, .story, .limits, .wide { grid-template-columns: minmax(0, 1fr); }
  .answer > .h2, .answer > div, .story__side, .story__beats, .limits__intro, .limits__list { grid-column: 1 / -1; }
  .story__side { position: static; }
  .story__beats { margin-top: var(--s5); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures > div:nth-child(n + 3) { border-top: 1px solid var(--hair); }
  .ways, .cols { grid-template-columns: minmax(0, 1fr); }
  .wide__notes { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-stage { max-width: 680px; }
}
@media (max-width: 560px) {
  .figures > div { padding: var(--s5) var(--s3) var(--s5) var(--s4); }
  .figures__n { font-size: 2rem; }
  .story__beats > div { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .story__beats p { font-size: var(--t-body); }
  .stats li { grid-template-columns: 10px minmax(0, 1fr); }
  .stats span:last-child { grid-column: 2; }
  .reads { grid-template-columns: minmax(0, 1fr); }
  .read { min-height: 0; }
  .read__go { margin-top: var(--s4); }
  .hero-stage { padding: var(--s4); }
  .hero-stage__main { width: 80%; }
  .hero-stage--single .hero-stage__main { width: 100%; }
  .hero-stage__float { width: 56%; }
  .hero-stage__cards { padding-bottom: var(--drop-sm, var(--drop, 18%)); }
}

@media (prefers-reduced-motion: reduce) {
  .js .tl:not(.is-in)::before { transform: none; }
}

/* The not-found page (404.html): the demo page's lit band, with its buttons and four cards spaced apart. */
.nf-band .cta { margin-top: var(--s5); }
.nf-band .reads { margin-top: clamp(48px, 6vw, 80px); }
