/* Dervo landing, product first. HTML previews use the app's components and current Home layout with example data.
   The meadow, serif headings and paper colours carry through both themes. */

/* ---------- Hero ---------- */
.b-hero { padding: clamp(24px, 5vh, 64px) 0 clamp(56px, 8vh, 96px); }
.b-hero-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(28px, 5vh, 52px); }
.b-hero-head h1 .ln { display: block; }
.b-hero-side { display: flex; flex-direction: column; gap: 22px; padding-bottom: 6px; }
.b-hero-side .lead { max-width: 30rem; }
.b-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.w-mask { padding-bottom: .14em; margin-bottom: -.14em; }

/* The desk: the meadow behind the window, blurred to colour and light the way the app's sidebar wash is */
.b-desk { position: relative; border-radius: 22px; padding: clamp(20px, 3.4vw, 52px) clamp(16px, 3.4vw, 52px) 0; overflow: hidden; isolation: isolate; }
.b-desk::before { content: ''; position: absolute; inset: -40px; z-index: -1; pointer-events: none;
  background: url('shared/assets/studio-meadow-320.webp') center 58% / cover no-repeat; filter: blur(22px) saturate(.9); opacity: .8; }
.b-desk::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 30%, transparent), transparent 40%); }
.b-desk .fit > .window { border-radius: 12px 12px 0 0; }
.b-note { margin-top: 16px; }
/* The night's noise: real lines from the three runs, loose over the desk until Home takes each one in. Motion shows
   them for about three seconds; at rest (reduced motion, no script) they never draw. */
#home { position: relative; }

/* ---------- Sections ---------- */
.b-sec { padding: clamp(56px, 8vh, 96px) 0; }
/* One spine: every lead starts on the hero lead's vertical line, and the kicker sits just above its heading. */
.b-sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 80px); row-gap: 12px;
  margin-bottom: clamp(32px, 5vh, 52px); }
.b-sec-head .kicker { grid-column: 1; grid-row: 1; }
.b-sec-head h2 { grid-column: 1; grid-row: 2; }
.b-sec-head .lead { grid-column: 2; grid-row: 1 / 3; align-self: end; max-width: 32rem; }
.b-stage { position: relative; }

/* The app, as the site shows it: no scrollbars inside a picture */
.b .app .column { scrollbar-width: none; overflow: hidden; }
.b .app .column::-webkit-scrollbar { display: none; }
.b .app .sb-foot { padding-top: var(--s2); }
.b .app .b-new { margin-top: var(--s2); color: var(--muted); }
.b .app .main-head .tools .btn-icon { pointer-events: none; }
/* Inactive-window lights: grey, as macOS draws them, so nothing warm sits near "Needs you". */
.b .app .lights i, .b .app .lights i:nth-child(2), .b .app .lights i:nth-child(3) { background: var(--line-strong); box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .08); }
:root { --app-faint: #85847d; }
.b .app { --faint: var(--app-faint); }
/* The sidebar wash is blurred to colour and light, so the 320px copy of the meadow draws the same and loads in one paint. */
.b .app.window::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 40%, transparent) 0%, transparent 38%, transparent 70%, color-mix(in srgb, var(--paper) 30%, transparent) 100%),
    url('shared/assets/studio-meadow-320.webp') 28% center / auto 100% no-repeat; }

/* ---------- How it's built: each point with the piece of the app that proves it ---------- */
.b-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.b-three > li { display: flex; flex-direction: column; gap: 10px; }
.b-three > li > p { color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 34ch; }
.b-three-title { font-size: 19px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; margin-top: 12px; text-wrap: balance; }
.b-why .b-three-title { font: 600 20px/1.25 var(--font-text); letter-spacing: -.014em; margin-top: 12px; }
/* Each piece is cut from the app: a sunk inset, not a floating card. */
.b-piece { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 144px; padding: 20px 22px; border-radius: var(--r3);
  background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.b-three > li:nth-child(2) .b-piece { align-items: center; }
.b-piece .handover { padding-left: 2px; }
.b-piece .sb-project { background: var(--raised); box-shadow: 0 0 0 1px var(--line), var(--lift); align-self: flex-start; padding: 10px 18px 10px 10px; }
.b-three > li:nth-child(2) .b-piece .sb-project { align-self: center; }
.b-piece .steps { gap: 2px; }
/* On your Mac: the project, and one run in it, stacked on the same left edge */
.b-three > li:nth-child(2) .b-piece { gap: 6px; }
.b-three > li:nth-child(2) .b-piece > * { width: 220px; max-width: 100%; }
.b-piece .b-run { padding: 7px 10px; cursor: default; }
.b-piece .b-run:hover { background: none; }
/* The composer's caret: solid while typing, blinking once the field is empty again and still has focus */
.b .app .composer .field.focused::before, .b .app .composer .field.typed::after { content: ''; display: inline-block; width: 1.5px; height: 1.1em;
  margin: 0 1px 0 0; vertical-align: -.18em; background: var(--ink); }
.b .app .composer .field.typed::before { content: none; }
.b .app .composer .field.typed::after { margin: 0 0 0 1px; }
.b .app .composer .field.focused:not(.typed)::before { animation: b-caret 1.1s linear infinite; }
@keyframes b-caret { 0%, 54% { opacity: 1; } 55%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .b .app .composer .field.focused::before { animation: none; } }

/* ---------- Waitlist ---------- */
.b-join { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding: clamp(64px, 10vh, 120px) 0 clamp(80px, 12vh, 130px); }
.b-join-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.b-join-mark { width: 44px; height: 44px; margin-bottom: 10px; }
.b-join .signup { text-align: left; }
.b-founder { margin: 10px 0 0; max-width: 34rem; }
.b-founder p { margin: 0; font-size: var(--fs-read); line-height: var(--lh-read); color: var(--ink-2); }
.b-founder footer { margin-top: 8px; font-size: var(--fs-small); color: var(--muted); }
.b-founder footer a { color: inherit; text-decoration: none; }
.b-founder footer a:hover { color: var(--ink); }
/* The form confirms: one soft done-coloured ring that fades back, drawn by landing.js only after a confirmed signup */
.b-join .email-row { transition: box-shadow .6s var(--ease); }
.b-join .email-row.is-confirmed { transition-duration: .25s;
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 5px color-mix(in srgb, var(--sage) 14%, transparent), 0 12px 30px -20px rgb(0 0 0 / .25); }
.b-join .email-row.is-confirmed:focus-within { box-shadow: 0 0 0 2px var(--pine), 0 0 0 6px color-mix(in srgb, var(--sage) 14%, transparent), 0 12px 30px -20px rgb(0 0 0 / .25); }
.b-join .email-row .button:hover { transform: none; box-shadow: none; }
.b-join .email-row .button:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .b-join .email-row .button:active { transform: none; } }

/* ---------- Good to know: plain facts, no boxes ---------- */
/* The list is the section, so it gets the wider column and the heading keeps it company. */
.b-know { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); column-gap: clamp(28px, 5vw, 80px); align-items: start; }
.b-know .b-sec-head { display: block; margin-bottom: 0; }
.b-know .b-sec-head .lead { margin-top: 16px; max-width: 26rem; }
.b-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 32rem; }
.b-facts > li { display: flex; flex-direction: column; gap: 0; }
.b-facts .b-three-title { margin-top: 0; font-size: 18px; letter-spacing: -.01em; margin-bottom: 6px; }
.b-facts p { color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 34ch; }
/* Each fact carries the app's glyph for the state it describes, hung in the gutter so the words keep the spine. */
.b-facts > li { position: relative; }
.b-facts .st { position: absolute; left: -30px; top: 4px; width: 16px; height: 16px; color: var(--muted); }
.b-facts .st svg { width: 16px; height: 16px; display: block; }
.b-facts .st[data-state="failed"], .b-facts .st[data-state="needs"] { color: var(--ink-2); }

@media (max-width: 1000px) {
  .b-three { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 820px) {
  .b-hero-head, .b-sec-head { grid-template-columns: minmax(0, 1fr); }
  .b-sec-head .kicker, .b-sec-head h2, .b-sec-head .lead { grid-column: 1; grid-row: auto; }
  .b-sec-head .lead { margin-top: 8px; }
  .b-know { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .b-facts > li { padding-left: 28px; }
  .b-facts .st { left: 0; }
}

/* ---------- Phones: punch in on the part of each screen that tells the story ----------
   Shrinking a 1040px window to a phone makes its text about 4px tall. Instead each window is drawn 360px wide, the
   width of the app's own reading column on a narrow screen, and scaled to fit (about 0.9). The sidebar and the
   Progress panel step aside, and each window keeps only its story: Home's summary and rows, the thread's offer and
   what replaces it, and Home's conversation. Windows size to their content here, so fit.js follows their height. */
/* Narrow windows: below this the app is drawn at the column's width and reflowed, instead of being scaled down.
   fit.js only ever shrinks, so a 1040px window in a 650px column renders its 13px text at about 7px. */
@media (max-width: 980px) {
  .b .app.window { width: 100%; height: auto; grid-template-columns: minmax(0, 1fr); border-radius: 12px; }
  .b .app.window .sb, .b .app.window .panel { display: none; }
  .b .app.window .main { box-shadow: none; }
  /* Reflowed, the card has no sidebar and isn't a macOS window any more, so the traffic lights go and the title
     lines up with the content underneath it instead of sitting 84px in, waiting for lights that aren't there. */
  .b .app.window .main-head { height: 46px; padding: 0 16px; }
  .b .app.window .main-head .tools { display: none; }
  .b .app.window .lights { display: none; }
  .b .app.window .main-body { grid-template-columns: minmax(0, 1fr); }
  .b .app.window .column { padding: 14px 16px 16px; }
  .b .app.window .measure { gap: 20px; }
  .b .app.window .pickup-head { flex-wrap: wrap; row-gap: 2px; }
  .b .app.window .pickup-head .caption { margin-left: 0; }
  .b .app.window .composer { width: calc(100% - 24px); margin: 0 auto 12px; padding-left: 16px; }
  .b .app.window .row-actions .btn { height: 30px; }
  /* Rows give their full width to the words: the state and time sit at the top right, over the name's line. */
  .b .app.window .row { grid-template-columns: 16px minmax(0, 1fr); position: relative; }
  .b .app.window .row .row-end { position: absolute; top: 12px; right: 12px; }
  .b .app.window .row.open .row-end { top: 16px; }
  .b .app.window .row .row-name { padding-right: 64px; }
  .b .app.window .row.open .row-name { padding-right: 132px; }
  .b .app.window .handoff .row.open .row-name { padding-right: 64px; }
  /* Quiet row controls step aside on narrow previews. */
  #home .app.window .row:not(.open) .row-end .btn { display: none; }
}

@media (max-width: 640px) {
  .b-hero { padding-top: 12px; padding-bottom: 48px; }
  .b-sec { padding: 48px 0; }
  .b-join { padding: 64px 0 56px; }
  .b-hero-side { gap: 18px; }
  .b-cta { gap: 12px 16px; }
  .b-cta .button { flex: 1 1 100%; }
  .b-note { font-size: 12.5px; margin-top: 12px; }
  .b-desk { padding: 12px 12px 0; border-radius: 18px; margin-inline: calc(-1 * var(--gutter) + 8px); }
  .b-piece { min-height: 0; padding: 18px 20px; }
  .b-desk .fit > .window { border-radius: 12px 12px 0 0; }
  /* The thread: the request, Claude Code's last lines and the offer. The recap repeats the request, so it steps aside. */
  /* Dividing work: Home's conversation, not the summary above it. */
  .b-three { gap: 32px; }
}


/* ---------- Backdrop (backdrop.js), 19 Sep ---------- */
/* The mesh sits on one fixed canvas under everything, so the body lets it through. Paper stays underneath. */
html { background: var(--paper); }
.shaded body.b, body.has-mesh { background: transparent; }
.backdrop-mesh { position: fixed; inset: 0; z-index: -5; pointer-events: none; }
body.b { position: relative; isolation: isolate; }

/* The hero's dots replace the blurred desk: full width behind the window, fading in above it and out below it */
.b-hero { position: relative; isolation: isolate; }
/* .shaded is set before the first paint (motion-guard.js), so the plate and its blurred meadow are never drawn on a
   machine that's about to get the dithered one. has-dots is the same state once the shader has actually mounted. */
.shaded .b-desk::before, .shaded .b-desk::after,
body.has-dots .b-desk::before, body.has-dots .b-desk::after { display: none; }
.shaded .b-desk, body.has-dots .b-desk { border-radius: 0; overflow: visible; }
/* With the dots behind it the window is a whole window, not a shape the desk cuts off. */
.shaded .b-desk .fit > .window, body.has-dots .b-desk .fit > .window { border-radius: 14px; }
body.has-dots #home { position: relative; z-index: 1; }
.backdrop-dots { position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 120px, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 120px, #000 62%, transparent 100%); }
.backdrop-dots::after { content: ''; position: absolute; inset: 0; background: var(--paper); opacity: .5; pointer-events: none; }
.backdrop-glow { position: absolute; left: 0; right: 0; z-index: -2; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 38%, transparent 80%); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 38%, transparent 80%); }
.backdrop-glow::before { content: ''; position: absolute; inset: -60px; background: url('shared/assets/studio-meadow-320.webp') center 70% / cover no-repeat;
  filter: blur(34px) saturate(1.05); opacity: .3; }

/* The demo windows sit straight on the page, with a deeper shadow to lift them */
.b-stage .fit > .window { box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 2px 6px rgb(20 30 24 / .04), 0 40px 80px -36px rgb(20 30 24 / .35); }

/* The close: the coast rises behind the waitlist and the footer, and the page ends on it */
.b-horizon { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none; overflow: hidden;
  height: clamp(400px, calc(36vw + 40px), 560px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%); mask-image: linear-gradient(180deg, transparent, #000 45%); }
.b-horizon::before { content: ''; position: absolute; inset: -50px; background: url('shared/assets/companion-coast.webp') 50% 68% / cover no-repeat;
  filter: blur(2px) saturate(.95); opacity: .75; }
/* The footer sits on the grass, so its text turns light, like a caption over a photo */
body.b > .footer { padding-bottom: clamp(40px, 5vw, 64px); }
body.b > .footer, body.b > .footer a, body.b > .footer .brand { color: #fbfaf6; text-shadow: 0 1px 12px rgb(20 30 20 / .45); }
body.b > .footer a:hover { color: #fff; }
body.b > .footer .pebble { filter: drop-shadow(0 1px 8px rgb(20 30 20 / .4)); }

/* ---------- It files itself: what you typed, and the name the rules gave it ---------- */
.b-filing { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.b-names { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 44px); }
.b-said { font: 400 clamp(19px, 1.55vw, 23px)/1.45 var(--font-display); color: var(--ink-2); max-width: 32ch; }
/* The words the rules keep. Everything around them fades once, so the name is visibly made of the request. */
.b-said b { font-weight: 400; color: var(--ink); }
.b-became { display: flex; align-items: center; gap: 7px; margin: 10px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.b-became svg { width: 14px; height: 14px; color: var(--faint); }
.b-named { min-height: 0; padding: 8px; width: fit-content; max-width: 100%; align-self: start; }
.b-named .sb-item { padding: 9px 14px 9px 12px; gap: 12px; cursor: default; }
.b-named .sb-item .name { flex: 0 0 auto; }
.b-named .sb-item .meta { margin-left: 22px; }
.b-named .sb-item:hover { background: none; }
.b-file-group { min-height: 0; gap: 16px; padding: 18px 18px 16px; justify-content: flex-start; }
.b-file-group .sb-group { margin: 0; }
.b-file-group .sb-item { cursor: default; }
.b-file-group .sb-item:hover { background: none; }
.b-file-group .b-note { margin: 0; max-width: 34ch; }
@media (max-width: 820px) {
  .b-filing { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- A piece of the app, lifted out of its window: no title bar, no sidebar, its own card on the page ---------- */
.b-shot { max-width: 680px; margin-inline: auto; display: flex; flex-direction: column; gap: clamp(20px, 2.2vw, 28px);
  padding: clamp(22px, 2.6vw, 34px); border-radius: 20px; background: var(--raised);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -52px rgb(20 30 24 / .5), 0 2px 6px -5px rgb(20 30 24 / .14); }
.b-shot .stand { font-size: var(--fs-read); line-height: var(--lh-read); color: var(--ink-2); }
.b-shot .next { display: flex; align-items: center; gap: var(--s4); padding: var(--s4); border-radius: var(--r2); background: var(--sunk); }
.b-shot .next-of { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.b-shot .next-text { font-size: var(--fs-small); font-weight: 600; }
.b-shot .next .btn { flex: none; }
.b-shot .shot-sec { display: flex; flex-direction: column; gap: var(--s3); }
.b-shot .shot-h { display: flex; align-items: baseline; gap: var(--s2); }
.b-shot .shot-h .count { font-size: var(--fs-caption); color: var(--faint); font-variant-numeric: tabular-nums; }
.b-shot .queue { display: flex; flex-direction: column; }
.b-shot .card { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s3); padding: var(--s4);
  border-radius: var(--r2); box-shadow: inset 0 0 0 1px var(--line); }
.b-shot .card + .card { margin-top: var(--s3); }
.b-shot .card .st { margin-top: 3px; }
.b-shot .row-line.strong { margin-top: 3px; font-size: var(--fs-body); color: var(--ink); }
.b-shot .row-actions { margin-top: var(--s4); align-items: center; }

/* ---------- Copy beside the picture, so the page stops reading as one column of stacked windows ---------- */
.b-side { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(32px, 4.6vw, 88px); align-items: center; }
.b-side-copy { display: flex; flex-direction: column; gap: 14px; }
.b-side-copy .lead { max-width: 30rem; }
.b-side .b-shot { max-width: none; margin-inline: 0; }
/* Flipped: the picture leads and the words answer it, so the wide column moves with it. */
.b-side-flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.b-side-flip .b-side-copy { order: 2; }
.b-thread-shot { gap: var(--s5); }
.b-thread-shot .chat { display: flex; flex-direction: column; gap: var(--s4); }
.b-thread-shot .msg-you { max-width: 88%; }
.b-thread-shot .sheet { margin: 0; }
@media (max-width: 980px) {
  .b-side { grid-template-columns: minmax(0, 1fr); row-gap: clamp(28px, 4vh, 40px); }
  .b-side-flip .b-side-copy { order: 0; }
}
.b-ask-shot { gap: var(--s5); }
.b-ask-shot .chat { display: flex; flex-direction: column; gap: var(--s4); }
.b-ask-shot .msg-you { max-width: 92%; }
.b-ask-shot .composer { width: 100%; margin: 0; }
.b-ask-shot .jobs { margin-top: var(--s3); }
@media (max-width: 640px) {
  /* At 390 the next step's line and its button both want the full width, so they take a row each. */
  .b-shot { padding: 20px 18px; border-radius: 16px; }
  .b-shot .next { flex-direction: column; align-items: stretch; gap: var(--s3); }
  .b-shot .next .btn { justify-content: center; }
  .b-thread-shot .msg-you, .b-ask-shot .msg-you { max-width: 100%; }
}

/* ---------- Section headings: the second line steps in, the way gsap.com sets its display type ---------- */
.b-sec-head h2 .ln + .ln, .b-side-copy h2 .ln + .ln { padding-left: .82em; }
.b-sec-head h2, .b-side-copy h2 { line-height: 1.0; }
/* Without a kicker above it the heading owns the top of the section, so the lead lines up with it. */
.b-sec-head { row-gap: 0; }
.b-sec-head h2 { grid-row: 1 / 3; }
.b-shot .label + .stand { margin-top: -6px; }

/* ---------- Knowledge: what both agents read, and what's still waiting on you ---------- */
.b-know-shot .know-head { display: flex; flex-direction: column; gap: var(--s2); }
.b-know-shot .know-lead { font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.b-know-shot .shot-h { flex-wrap: wrap; }
.b-know-shot .know-note { margin-left: auto; }
.b-know-shot .row-name { display: flex; align-items: baseline; gap: var(--s3); }
.b-know-shot .row-name .kind { margin-left: auto; font-size: var(--fs-caption); font-weight: 600; color: var(--faint); white-space: nowrap; }
.b-know-shot .quiet-row { padding: var(--s4); }
.b-thread-shot .byline .when { font-weight: 400; color: var(--faint); }
.b-thread-shot .read { max-width: 52ch; }
.b-thread-shot .opt-in { margin-top: var(--s3); color: var(--faint); }
.b-know-shot .know-note { font-weight: 400; color: var(--muted); }

@media (max-width: 640px) {
  /* The stepped second line costs width the phone hasn't got, so the display type sets flush there. */
  .b-sec-head h2 .ln + .ln, .b-side-copy h2 .ln + .ln { padding-left: 0; }
  /* A note hung off the right edge of a 350px column reads as a stray line; it sits under its heading instead. */
  .b-know-shot .know-note { margin-left: 0; }
}

/* Home: Catch up owns the main column. Requests have their own view in the app. */
.b-home .home-overview { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.b-home .home-catchup { width: min(100%, 680px); padding: 24px 36px 20px; margin-inline: auto; }
.b-home .home-catchup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.b-home .home-catchup-head .display-1 { font-size: 36px; }
.b-home .home-brief { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin-top: 22px; }
.b-home .home-section { margin-top: 25px; }
.b-home .home-section > .label { margin-bottom: 8px; }
.b-home .home-section .row { margin-inline: -12px; }
.b-home .home-section .row-name { font-size: 15px; padding-right: 0; }
.b-home .home-section .row-line { font-size: 14px; line-height: 1.5; }
.b-home .home-section .when { font-size: 12px; margin-top: 5px; }
.b-home .home-go { margin-top: 3px; color: var(--muted); }
.b-home .home-running { margin-top: 16px; }
.b-home .home-running .row { padding-block: 6px; }
.b-home .home-overview > .composer { width: calc(100% - 64px); margin: auto auto 24px; }
.b-home .composer .field { font-size: 16px; }
.b-home .composer .hint { color: var(--muted); }

/* Opening the result keeps the same thread from the overview above. */
.b-result { gap: 24px; }
.result-route { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.result-route b { color: var(--ink); font-weight: 600; }
.result-body { display: grid; }
.result-body > * { grid-area: 1 / 1; }
.result-preview { align-self: center; }
.result-preview > .label { display: block; margin-bottom: 14px; }
.result-detail { display: flex; flex-direction: column; gap: 16px; }
.result-list { display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 15px; padding-left: 18px !important; list-style: disc !important; }
.result-checks { display: flex; align-items: center; gap: 8px; color: var(--sage); font-size: 13px; }
.result-foot { border-top: 1px solid var(--line); padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.b .b-ask-shot .job { min-width: 0; }

/* Dark mode belongs to the whole scene, including every app preview. */
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--sunk); color: var(--ink); }
.theme-toggle svg { grid-area: 1 / 1; }
.theme-toggle .theme-sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
[data-theme="dark"] .backdrop-mesh { opacity: .045; }
[data-theme="dark"] .backdrop-dots { filter: brightness(.55) saturate(.65); opacity: .65; }
[data-theme="dark"] .backdrop-glow { opacity: .25; }
[data-theme="dark"] .b-desk::before { filter: blur(22px) saturate(.65) brightness(.5); opacity: .6; }
[data-theme="dark"] .b-horizon::before { filter: blur(2px) saturate(.6) brightness(.45); opacity: .6; }
[data-theme="dark"] .app.window { box-shadow: var(--window-shadow); }
[data-theme="dark"] .b-shot { box-shadow: 0 0 0 1px var(--line-strong), 0 32px 70px -32px rgb(0 0 0 / .6); }
[data-theme="dark"] { --faint: #9b9a93; --app-faint: #9b9a93; }
/* Animate the palette once at the root. Inherited text and surfaces follow the same value each frame.
   Per-element colour transitions restart as their parents change, so they lag and can snap at cleanup. */
@property --paper { syntax: "<color>"; inherits: true; initial-value: #f7f6f3; }
@property --canvas { syntax: "<color>"; inherits: true; initial-value: #fdfdfc; }
@property --raised { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --sunk { syntax: "<color>"; inherits: true; initial-value: #f2f1ed; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #1b1b19; }
@property --ink-2 { syntax: "<color>"; inherits: true; initial-value: #3c3c38; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #6d6c66; }
@property --faint { syntax: "<color>"; inherits: true; initial-value: #a09f98; }
@property --app-faint { syntax: "<color>"; inherits: true; initial-value: #85847d; }
@property --pine { syntax: "<color>"; inherits: true; initial-value: #22382b; }
@property --pine-ink { syntax: "<color>"; inherits: true; initial-value: #f8f8f5; }
@property --sage { syntax: "<color>"; inherits: true; initial-value: #5e7351; }
@property --sage-wash { syntax: "<color>"; inherits: true; initial-value: #eef0e8; }
@property --live { syntax: "<color>"; inherits: true; initial-value: #2f7844; }
@property --live-wash { syntax: "<color>"; inherits: true; initial-value: #e6f1e8; }
@property --rust { syntax: "<color>"; inherits: true; initial-value: #b0461f; }
@property --rust-wash { syntax: "<color>"; inherits: true; initial-value: #f8ebe4; }
@property --glass { syntax: "<color>"; inherits: true; initial-value: rgb(251 250 245 / .70); }
@property --wash { syntax: "<number>"; inherits: true; initial-value: .3; }
:root.theme-animate {
  transition: --paper 320ms ease,
    --canvas 320ms ease,
    --raised 320ms ease,
    --sunk 320ms ease,
    --ink 320ms ease,
    --ink-2 320ms ease,
    --muted 320ms ease,
    --faint 320ms ease,
    --app-faint 320ms ease,
    --pine 320ms ease,
    --pine-ink 320ms ease,
    --sage 320ms ease,
    --sage-wash 320ms ease,
    --live 320ms ease,
    --live-wash 320ms ease,
    --rust 320ms ease,
    --rust-wash 320ms ease,
    --glass 320ms ease,
    --wash 320ms ease;
}
.theme-animate .backdrop-mesh, .theme-animate .backdrop-dots, .theme-animate .backdrop-glow,
.theme-animate .b-desk::before, .theme-animate .b-horizon::before {
  transition: opacity 320ms ease, filter 320ms ease;
}
@media (max-width: 980px) {
  .b-home .home-catchup { padding: 24px; }
  .b-home .home-overview > .composer { margin-top: 12px; }
}
@media (max-width: 640px) {
  .b-home .home-catchup { padding: 20px 18px 10px; }
  .b-home .home-catchup-head { align-items: baseline; flex-wrap: wrap; gap: 8px; }
  .b-home .home-catchup-head .display-1 { font-size: 32px; }
  .b-home .home-catchup-head .btn { padding-inline: 10px; font-size: 11px; }
  .b-home .home-brief { font-size: 16px; margin-top: 18px; }
  .b-home .home-section { margin-top: 20px; }
  .b-home .home-section .row { grid-template-columns: 16px minmax(0, 1fr); }
  .b-home .home-section .row-name { padding-right: 0 !important; }
  .b-home .home-running .row > .caption, .b-home .home-go { display: none; }
  .b-home .home-running .row-line { display: none; }
  .b-home .home-overview > .composer { width: calc(100% - 24px); padding: 14px 14px 10px; margin-bottom: 12px; }
  .b-home .composer .hint { font-size: 11px; }
  .b-ask-shot .job { grid-template-columns: 16px minmax(0, 1fr) 14px; }
  .b-ask-shot .job .state { grid-column: 2; grid-row: 2; margin-top: 3px; }
  .b-ask-shot .job .go { grid-column: 3; grid-row: 1 / 3; }
  .nav-end { gap: 8px; }
  .nav-end .button { padding-inline: 12px; font-size: 13px; }
  .theme-toggle { width: 36px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  :root.theme-animate, .theme-animate .backdrop-mesh, .theme-animate .backdrop-dots, .theme-animate .backdrop-glow,
  .theme-animate .b-desk::before, .theme-animate .b-horizon::before { transition: none; }
}

html:not(.motion) .b .app .st[data-state="running"] svg { animation: none; }

/* ---------- $DERVO: the contract-address band ---------- */
.b-token { padding: clamp(24px, 4vh, 56px) 0 clamp(56px, 8vh, 96px); }
.b-token-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 72px); row-gap: 22px; align-items: center; padding: clamp(24px, 3.2vw, 44px); border-radius: var(--r3); background: var(--raised); box-shadow: 0 0 0 1px var(--line), var(--lift); }
.b-token-card .d-2 { margin: 18px 0 14px; }
.b-token-card .lead { max-width: 34rem; margin: 0 0 10px; }
.b-token-card .lead:last-of-type { margin-bottom: 0; }
.b-token-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--r-pill); background: var(--rust-wash); color: var(--rust); font: 500 var(--fs-caption)/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.b-token-ca { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r2); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.b-token-ca-label { font: 600 var(--fs-caption)/1 var(--font-text); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.b-token-ca-row { display: flex; align-items: stretch; gap: 10px; flex-wrap: nowrap; }
.b-token-ca-value { flex: 1 1 auto; min-width: 0; font-family: var(--font-mono); font-size: var(--fs-small); line-height: 1.35; color: var(--ink); background: var(--canvas); border-radius: var(--r1); padding: 10px 12px; box-shadow: 0 0 0 1px var(--line-strong); overflow-wrap: anywhere; }
.b-token-copy { flex: none; font: 600 var(--fs-small)/1 var(--font-text); color: var(--ink); background: var(--raised); border: 0; border-radius: var(--r1); padding: 10px 15px; cursor: pointer; box-shadow: 0 0 0 1px var(--line-strong); transition: background .2s var(--ease), color .2s var(--ease), transform .12s var(--ease); }
.b-token-copy:hover { background: var(--canvas); }
.b-token-copy:active { transform: scale(.98); }
.b-token-copy[aria-disabled="true"] { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: default; }
.b-token-copy[aria-disabled="true"]:hover { background: color-mix(in srgb, var(--raised) 40%, transparent); }
.b-token-copy[aria-disabled="true"]:active { transform: none; }
.b-token-copy.is-copied { color: var(--rust); box-shadow: 0 0 0 1px var(--rust); }
.b-token-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.b-token-note:empty { display: none; }
@media (max-width: 980px) { .b-token-card { grid-template-columns: minmax(0, 1fr); align-items: start; } }
@media (max-width: 640px) { .b-token-ca-row { flex-wrap: wrap; } .b-token-copy { flex: 1 1 auto; } }
