/* The demo-page layout for the builds without a form (lead pipeline, meeting follow-ups), on top of base.css.
   Every such demo has the same sections, so they read as one set: the header (the build's name and Demo),
   the hero (headline, then the map: what goes in, the AI step, what comes out), how it works (six steps),
   what we set up together (four columns), the free-call band, the footer. A new demo changes only index.html.
   This file is the same in every demo repo; change it in all of them at once.
   Motion only where it shows the flow: the map builds once, from left to right. */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--demo-accent); margin-bottom: 14px; }
.brand-name { font-size: 16.5px; }

/* hero: the words on top, the map under them across the full width */
.hero--map { padding-bottom: clamp(64px, 9vw, 104px); }
.hero--map h1 { max-width: 17ch; }
.hero--map .lead { margin-top: 18px; max-width: 46ch; }

/* the map: In → AI → Out on a stone panel. Phone: one column, top to bottom */
.map {
  margin: 0; display: grid; gap: 12px;
  grid-template-areas: "l1" "c1" "a1" "l2" "c2" "a2" "l3" "c3";
  padding: 24px 16px 34px; border-radius: 20px; background: var(--stone);
}
.m-l1 { grid-area: l1; } .m-c1 { grid-area: c1; } .m-a1 { grid-area: a1; }
.m-l2 { grid-area: l2; } .m-c2 { grid-area: c2; } .m-a2 { grid-area: a2; }
.m-l3 { grid-area: l3; } .m-c3 { grid-area: c3; }
.m-label {
  justify-self: start; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px; background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--mist);
}
.m-label.ai { background: var(--demo-accent); color: #fff; box-shadow: none; }
.m-l2 { justify-self: center; }

/* the arrows between the three parts: down on a phone, right on a wide screen */
.m-link { position: relative; justify-self: center; width: 2px; height: 34px; background: linear-gradient(#B6AFA3, #B6AFA3) center / 2px 100% no-repeat; }
.m-link::before { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #B6AFA3; transform: translateX(-50%); }
.m-link::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 9px; height: 9px;
  border-right: 2px solid #B6AFA3; border-bottom: 2px solid #B6AFA3; transform: translateX(-50%) rotate(45deg);
}

/* In: what the build reads, as white cards with the tools' logos */
.m-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.src { display: grid; gap: 10px; padding: 14px 16px 15px; background: #fff; border: 1px solid var(--mist); border-radius: 12px; box-shadow: var(--sheet); }
.src-logos { display: flex; gap: 6px; }
.src-logos .t { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--mist); color: var(--graphite); }
.src-logos img, .src-logos svg { width: 20px; height: 20px; flex: none; }
.src b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.src em { display: block; margin-top: 2px; font-style: normal; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* AI: the skill as a sheet of paper (like the site's system diagram), with Claude on its corner */
.m-ai { display: grid; justify-items: center; text-align: center; padding: 6px 0; }
.skill { position: relative; z-index: 0; width: 66px; height: 84px; margin: 8px 0 18px; }
.skill::before { content: ""; position: absolute; inset: -26px -34px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(7, 42, 200, .13), rgba(7, 42, 200, 0)); }
.sheet {
  display: grid; align-content: start; gap: 6px; width: 100%; height: 100%; padding: 12px 10px;
  background: #fff; border: 1px solid var(--mist); border-radius: 4px; box-shadow: var(--sheet); transform: rotate(-3deg);
}
.sheet i { display: block; height: 3.5px; border-radius: 2px; background: #E6E1D8; }
.sheet i:first-child { width: 62%; background: #CFC9BE; }
.sheet i.s { width: 72%; }
.skill-badge {
  position: absolute; right: -12px; bottom: -10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px var(--mist), 0 4px 12px rgba(40, 32, 20, .14);
}
.skill-badge img { width: 17px; height: 17px; }
.skill-name { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.skill-sub { margin-top: 2px; font-style: normal; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* Out: what the business gets, as paper on the panel, with the tools it lands in pinned to it */
.m-out { position: relative; min-width: 0; }
.out-card { position: relative; background: #fff; border: 1px solid var(--mist); border-radius: 12px; box-shadow: var(--float); transform: rotate(-1deg); }
.out-pills { position: relative; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: -14px 8px 0 14px; }
.pin {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px; border-radius: 10px;
  background: #fff; border: 1px solid var(--mist); box-shadow: 0 1px 2px rgba(40, 32, 20, .05), 0 8px 18px rgba(40, 32, 20, .1);
  font-size: 13px; font-weight: 500; line-height: 1.2; color: var(--ink); white-space: nowrap;
}
.pin:nth-child(odd) { transform: rotate(1.2deg); }
.pin:nth-child(even) { transform: rotate(-1deg); }
.pin img, .pin svg { width: 16px; height: 16px; flex: none; }
.pin svg { color: var(--muted); }
.pin.done svg { color: var(--demo-accent); }

/* Out, lead pipeline: this week's companies with their fit (the site card's drawing, bigger) */
.leads { padding: 14px 18px 6px; }
.lc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--mist); }
.lc-head b { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.lc-head span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.lc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--stone); }
.lc-row:last-child { border-bottom: 0; }
.lc-row b { font-size: 15px; font-weight: 500; line-height: 1.3; }
.lc-sub { grid-column: 1; font-size: 13px; line-height: 1.35; color: var(--muted); }
.lc-row em {
  grid-column: 2; grid-row: 1 / 3; font-style: normal; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 4px 10px; border-radius: 999px; background: var(--royal-100); color: var(--royal-500);
}
.lc-row.top em { background: var(--royal-500); color: #fff; }
.lc-mail { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--royal-500); }
.lc-mail img { width: 14px; height: 14px; }

/* Out, meeting follow-ups: the summary for the client (the site card's drawing, bigger) */
.sum { padding: 18px 20px 20px; }
.sum-label { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sum-title { display: block; margin-top: 4px; font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.sum-cols { margin-top: 14px; display: grid; gap: 14px; }
.sum-col { display: grid; gap: 8px; align-content: start; padding-top: 12px; border-top: 1px solid var(--mist); }
.sum-h { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--royal-500); }
.it { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.3; color: var(--graphite); }
.it svg { flex: none; width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: var(--royal-500); color: #fff; }
.it i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.6px solid var(--royal-500); }

/* how it works: six steps on a dashed line. Phone: a list, the dots down the left.
   Wide: six columns, each dot centred over its word, every heading, logo row and line on the same height */
.steps { margin-top: 44px; display: grid; gap: 26px; position: relative; }
.steps li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "n h" ". l" ". p"; column-gap: 16px; row-gap: 8px; }
.steps .n {
  grid-area: n; position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 15px;
  box-shadow: inset 0 0 0 1.5px #C2BBAE, 0 0 0 6px var(--paper);
}
.steps .ai .n { background: var(--demo-accent); color: #fff; box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px rgba(7, 42, 200, .12); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: -26px; border-left: 1.5px dashed #C2BBAE; }
.steps h3 { grid-area: h; display: flex; align-items: center; min-height: 34px; white-space: nowrap; }
.steps .logos { grid-area: l; display: flex; align-items: center; gap: 7px; height: 22px; color: var(--muted); }
.steps .logos img, .steps .logos svg { width: 20px; height: 20px; flex: none; }
.steps p { grid-area: p; font-size: 15px; line-height: 1.5; max-width: 40ch; }

/* what we set up together: four columns divided by lines on the stone band, no cards (like build 1's groups) */
.setup { margin-top: 44px; display: grid; }
.setup li { display: grid; gap: 10px; align-content: start; padding: 26px 0; border-top: 1px solid var(--mist); }
.setup li:first-child { border-top: 0; padding-top: 0; }
.tiles { display: flex; gap: 6px; margin-bottom: 6px; }
.tile { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--mist); color: var(--demo-accent); }
.tile img { width: 22px; height: 22px; }
.tile svg { width: 21px; height: 21px; }
.tile.icon { background: var(--demo-accent-soft); box-shadow: none; }
.setup p { font-size: 15.5px; max-width: 34ch; }

/* the free-call band: the one deep blue band on the page, a white sheet on it (build 1's form band) */
.cta-band { background: var(--deep); padding: clamp(56px, 9vw, 104px) var(--gutter); }
.cta-sheet { max-width: 620px; margin: 0 auto; text-align: center; background: #fff; border-radius: 16px; padding: clamp(34px, 7vw, 54px) clamp(22px, 5vw, 48px); box-shadow: 0 30px 70px rgba(0, 20, 55, .35); }
.cta-sheet .mark { width: 44px; height: 44px; }
.cta-sheet h2 { margin-top: 12px; font-size: clamp(28px, 5.4vw, 38px); }
.cta-sheet p { margin: 12px auto 0; max-width: 36ch; }
.cta-sheet .btn { margin-top: 26px; }
.site-foot { border-top: 0; padding-top: 0; }
.site-foot .foot-bottom { margin-top: 0; padding-top: 24px; border-top: 0; }

/* the map builds once, from left to right (top to bottom on a phone). Only when the page opens in view (the "anim"
   class from the script in <head>): a page opened in a background tab shows the map as it is, never an empty panel */
.anim .map > * { animation: m-in .5s var(--ease) both; }
.anim .map .m-l1, .anim .map .m-c1 { animation-delay: .1s; }
.anim .map .m-a1 { animation: m-down .4s var(--ease) .4s both; }
.anim .map .m-l2, .anim .map .m-c2 { animation-delay: .55s; }
.anim .map .m-a2 { animation: m-down .4s var(--ease) .85s both; }
.anim .map .m-l3, .anim .map .m-c3 { animation-delay: 1s; }
.anim .map .out-pills { animation: m-in .5s var(--ease) 1.35s both; }
@keyframes m-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes m-down { from { opacity: 0; clip-path: inset(-8px -8px 100% -8px); } to { opacity: 1; clip-path: inset(-8px); } }
@keyframes m-right { from { opacity: 0; clip-path: inset(-8px 100% -8px -8px); } to { opacity: 1; clip-path: inset(-8px); } }

@media (min-width: 480px) {
  .sum-cols { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .map { padding: 32px 24px 40px; }
  .m-label { justify-self: center; }
  .m-in, .m-out { justify-self: center; width: 100%; max-width: 460px; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
  .steps li::after { display: none; }
  .setup { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .setup li:nth-child(2) { border-top: 0; padding-top: 0; }
}
@media (min-width: 900px) {
  .hero--map { grid-template-columns: 1fr; gap: 0; }
  .hero-text { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: end; }
  .hero--map .lead { margin-top: 0; padding-bottom: 8px; }
  .map {
    margin-top: 52px; column-gap: 10px; row-gap: 22px; align-items: center; padding: 34px 40px 46px;
    grid-template-columns: minmax(0, .92fr) 52px minmax(0, .7fr) 52px minmax(0, 2fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "l1 . l2 . l3" "c1 a1 c2 a2 c3";
  }
  .m-label { align-self: start; }
  .m-in { grid-template-columns: minmax(0, 1fr); }
  .m-link { width: 100%; height: 2px; background-size: 100% 2px; }
  .m-link::before { left: -3px; top: 50%; transform: translateY(-50%); }
  .m-link::after { left: auto; right: 0; bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }
  .anim .map .m-a1, .anim .map .m-a2 { animation-name: m-right; }

  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 14px 20px; }
  .steps li {
    grid-row: span 4; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "n" "h" "l" "p"; row-gap: 14px; justify-items: center; text-align: center;
  }
  .steps li:not(:last-child)::after { display: none; }
  /* one dashed line from the first dot's centre to the last one's, behind the dots */
  .steps::before { content: ""; position: absolute; top: 17px; left: calc((100% - 100px) / 12); right: calc((100% - 100px) / 12); border-top: 1.5px dashed #C2BBAE; }
  .steps h3 { min-height: 0; }
  .steps .logos { justify-content: center; }
  .steps p { font-size: 14.5px; }

  .setup { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .setup li { padding: 0 26px; border-top: 0; border-left: 1px solid var(--mist); }
  .setup li:first-child { padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .anim .map > *, .anim .map .out-pills { animation: none !important; }
}
