/* The home page (home/index), drawn with the tool introductions' bands (.intro-band, .intro-hero, .intro-grey,
   .intro-close in application.tailwind.css): the hero washed in sky, the tools on show by shelf, three sample papers
   beside their way in, and the black close. The hero's estimate (home/_work_order) is its own. Loaded only here. */
.home-header-short { display: none; }
.home-page { --home-space: clamp(4rem, 3rem + 4vw, 7rem); }
.home-band { --key: var(--color-key-sky); }
/* The hero: the band runs up to the header (its own top padding, so the hero's margin can't slip out above it), the
   words and the estimate half each, the estimate a size up and lifted off the band. */
.home-band > .page-wrap { padding-top: clamp(3rem, 1.5rem + 5vw, 7rem); }
.home-band .intro-hero { margin-top: 0; row-gap: 3rem; align-items: center; }
.home-band .intro-title { max-width: 15ch; font-size: clamp(2.75rem, 1.6rem + 3.6vw, 5.25rem); }
.home-band .intro-lead { max-width: 28rem; }
.home-band .home-job { width: min(100%, 36rem); }
@media (min-width: 64rem) {
  .home-band .intro-hero > .intro-lead-side { grid-column: span 6; }
  .home-band .intro-hero > .intro-stage { grid-column: span 6; justify-items: end; }
  .home-band .home-job { box-shadow: 0 30px 60px -20px rgb(30 27 75 / .45); }
}

.home-start { display: grid; gap: .75rem; max-width: 25rem; margin-top: 2rem; }
.home-start label { font-size: .9375rem; font-weight: 650; }
.home-start label span { color: var(--color-ink-muted); font-weight: 400; }
.home-start input { width: 100%; min-width: 0; height: 3.25rem; padding: .75rem 1.25rem; border: 1.5px solid var(--color-ink); border-radius: var(--radius-control); background: var(--color-field); color: var(--color-ink); font: inherit; }
.home-start input::placeholder { color: var(--color-ink-soft); }
.home-start .btn { justify-content: space-between; }
.home-or { justify-self: center; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .75rem; color: var(--color-ink-muted); font-size: .9375rem; text-decoration: underline; text-underline-offset: .2em; }
.home-or:hover { color: var(--color-ink); }

.home-job { padding: 1.5rem; background: light-dark(var(--color-indigo), var(--color-indigo-100)); border-radius: 1.25rem; }
.home-job-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-bottom: 1rem; color: light-dark(var(--color-white), var(--color-ink)); font-size: .9375rem; font-weight: 600; }
.home-example-label { padding: .25rem .5rem; border: 1px solid var(--color-indigo-200); border-radius: .25rem; color: light-dark(var(--color-indigo-100), var(--color-indigo)); font-size: .875rem; font-weight: 400; white-space: nowrap; }
.home-estimate { display: block; padding: 1.5rem; border-radius: .25rem; background: var(--color-white); color: var(--color-ink); box-shadow: 0 12px 30px rgb(0 0 0 / .15); transition: transform 200ms ease, box-shadow 200ms ease; }
.home-estimate:hover { transform: translateY(-3px); box-shadow: 0 18px 32px rgb(0 0 0 / .22); }
.home-estimate:focus-visible { outline-color: var(--color-white); outline-offset: 6px; }
.home-estimate-brand { display: flex; gap: .75rem; align-items: center; padding-bottom: 1rem; border-bottom: 2px solid var(--color-indigo); }
.home-estimate-monogram { display: grid; place-items: center; flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--color-indigo-50); color: var(--color-indigo); font-size: 1.125rem; font-weight: 750; line-height: 1; }
.home-page .workorder-name { font-size: 1.25rem; font-weight: 750; font-stretch: normal; line-height: 1.2; }
.home-estimate-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1rem; }
.home-estimate-heading > :first-child { font-size: 1.75rem; line-height: 1.2; font-weight: 700; letter-spacing: -.03em; }
.home-estimate-heading > :last-child { font-family: ui-monospace, monospace; font-size: .875rem; color: var(--color-ink-soft); }
.home-estimate-customer { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-block: 1rem; font-size: .875rem; color: var(--color-ink-soft); }
.home-estimate-customer strong { display: block; margin-top: .25rem; color: var(--color-ink); font-weight: 550; }
.home-estimate-items > div { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding-block: .625rem; border-bottom: 1px solid var(--color-line); font-size: .875rem; }
.home-estimate-items > div > :last-child { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.home-estimate-items small { display: block; color: var(--color-ink-soft); font-size: .875rem; }
.home-estimate-items .home-estimate-item-label { color: var(--color-ink-soft); font-weight: 600; padding-block: .5rem; }
.home-estimate-total { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding-top: 1rem; font-size: .875rem; }
.home-estimate-total strong { color: var(--color-indigo); font-size: 1.75rem; line-height: 1.2; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.home-estimate-open { display: flex; justify-content: space-between; align-items: center; min-height: 2.75rem; margin-top: .75rem; border-top: 1px solid var(--color-line); padding-top: .75rem; color: var(--color-indigo); font-size: .875rem; font-weight: 650; }

/* The shelves: four steps of a job, each with its tools as rows. */
.home-shelves { padding-top: var(--home-space); scroll-margin-top: 5rem; }
.home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.home-shelf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.home-shelf { display: flex; flex-direction: column; padding: 1.5rem 1.25rem 1rem; border-radius: 1.25rem; background: light-dark(#f1f0ec, #232631); }
.home-shelf-n { color: var(--color-ink-soft); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8125rem; font-weight: 600; }
.home-shelf h3 { margin-top: .75rem; font-size: 1.5rem; font-weight: 450; letter-spacing: -.03em; line-height: 1.1; }
.home-shelf-line { margin-top: .5rem; color: var(--color-ink-muted); font-size: .9375rem; line-height: 1.45; }
.home-shelf ul { display: grid; gap: .5rem; margin-top: 1.25rem; }
.home-shelf-tool { display: flex; align-items: flex-start; gap: .75rem; min-height: 2.75rem; padding: .875rem; border-radius: .75rem; background: var(--color-white); color: var(--color-indigo); transition: box-shadow 160ms ease; }
.home-shelf-tool:hover { box-shadow: 0 0 0 1.5px var(--color-indigo); }
.home-shelf-tool b { display: block; color: var(--color-ink); font-size: .9375rem; font-weight: 650; line-height: 1.3; }
.home-shelf-tool small { display: block; margin-top: .125rem; color: var(--color-ink-muted); font-size: .8125rem; line-height: 1.4; }
.home-shelf-arrow { margin-top: .125rem; transition: translate 300ms cubic-bezier(0.16, 1, 0.3, 1); }
.home-shelf-tool:hover .home-shelf-arrow { translate: .25rem 0; }

/* Every done tool on its shelf: the free ones as rows to try, the rest by name under "Signed in". Three across on a
   wide screen. */
.home-shelves-lead { margin-top: .75rem; }
.home-shelf-grid.home-shelf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-shelf-try { flex-shrink: 0; align-self: center; padding: .1875rem .5rem; border-radius: 9999px; background: var(--color-indigo); color: var(--color-white); font-size: .75rem; font-weight: 650; white-space: nowrap; }
.home-shelf-signed { display: flex; align-items: center; gap: .375rem; margin-top: 1.25rem; }
.home-shelf-signed svg { width: .875rem; height: .875rem; }
.home-shelf ul.home-shelf-more { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .625rem; }
.home-shelf-more li { padding: .25rem .625rem; border: 1px solid var(--color-line); border-radius: 9999px; background: var(--color-white); color: var(--color-ink-muted); font-size: .8125rem; line-height: 1.4; }
.home-shelf-more a { display: block; margin: -.25rem -.625rem; padding: .25rem .625rem; border-radius: inherit; color: var(--color-ink); }
.home-shelf-more li:has(> a:hover) { border-color: var(--color-ink-muted); }

/* The three workbench screens as samples: Today's lines, the clients by stage, and a message from the owner's phone. */
.home-today-lines { display: grid; margin-top: .5rem; }
.home-today-lines li { --tone: var(--color-key-slate); display: flex; align-items: center; gap: .75rem; padding: .75rem 0; border-bottom: 1px dashed var(--intro-rule); }
.home-today-lines li::before { flex-shrink: 0; align-self: flex-start; width: .5rem; height: .5rem; margin-top: .375rem; border-radius: 9999px; background: var(--tone); content: ""; }
.home-today-lines li > span:first-child { flex: 1; }
.home-today-lines .is-soon { --tone: var(--color-key-sky); }
.home-today-lines .is-due { --tone: var(--color-key-amber); }
.home-today-lines .is-wrong { --tone: var(--color-key-rose); }
.home-today-lines b { display: block; font-size: var(--text-small); font-weight: 650; line-height: 1.3; }
.home-today-lines small { display: block; margin-top: .125rem; color: var(--color-ink-soft); font-size: .8125rem; }
.home-pill { flex-shrink: 0; padding: .375rem .75rem; border-radius: 9999px; background: var(--color-indigo); color: var(--color-white); font-size: .8125rem; font-weight: 650; white-space: nowrap; }

.home-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .25rem; margin-block: 1rem .5rem; }
.home-strip li { display: grid; justify-items: center; gap: .25rem; padding: .5rem .25rem; border-radius: .5rem; background: color-mix(in oklab, var(--color-mist) 60%, white); font-size: .75rem; font-weight: 600; text-align: center; }
.home-strip b { font-family: var(--intro-mono); font-size: 1rem; font-variant-numeric: tabular-nums; }
.home-clients-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .75rem; padding-block: .625rem; border-bottom: 1px dashed var(--intro-rule); }
.home-clients-who b { display: block; font-size: var(--text-small); font-weight: 650; }
.home-clients-who small { color: var(--color-ink-soft); font-size: .8125rem; }
.home-clients-stage { display: flex; align-items: center; gap: .375rem; align-self: start; font-size: .8125rem; font-weight: 600; }
.home-clients-next { grid-column: 1 / -1; display: flex; align-items: center; gap: .375rem; color: var(--color-indigo); font-size: .8125rem; font-weight: 650; }
.home-clients-next svg { width: .875rem; height: .875rem; }

.home-moments, .home-sends { display: flex; flex-wrap: wrap; gap: .375rem; }
.home-moments { margin-block: 1rem; }
.home-moments li, .home-sends li { padding: .375rem .75rem; border: 1px solid var(--color-line); border-radius: 9999px; font-size: .8125rem; font-weight: 600; }
.home-moments .is-picked { border-color: var(--color-indigo); background: var(--color-indigo-50); color: var(--color-indigo); }
.home-sends .is-picked { border-color: var(--color-indigo); background: var(--color-indigo); color: var(--color-white); }
.home-bubble { margin-bottom: 1rem; padding: .875rem 1rem; border-radius: 1.125rem 1.125rem .25rem 1.125rem; background: var(--color-indigo-50); font-size: .9375rem; line-height: 1.45; }
.home-sent { display: flex; align-items: center; gap: .375rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px dashed var(--intro-rule); color: light-dark(#2e7a50, #5fb686); font-family: var(--intro-mono); font-size: .75rem; font-weight: 600; }

/* A sample paper beside its way in; every other one the other way round on a wide screen. */
.home-show { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 2.5rem; padding-top: var(--home-space); }
.home-show .intro-lead { max-width: 26rem; }
.home-show-stage { padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); border-radius: 1.5rem; background: linear-gradient(120deg, color-mix(in oklab, var(--color-key-sky) 18%, var(--color-white)), color-mix(in oklab, var(--color-indigo) 10%, var(--color-white)) 75%); }
.home-show-stage .intro-sheet { width: min(100%, 32rem); }
.home-show + .intro-grey { margin-top: var(--home-space); }
@media (min-width: 64rem) {
  .home-show { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 3rem; }
  .home-show-text { grid-column: span 5; }
  .home-show-stage { grid-column: span 7; }
  .home-show.is-flipped .home-show-text { grid-column: 8 / span 5; grid-row: 1; }
  .home-show.is-flipped .home-show-stage { grid-column: 1 / span 7; grid-row: 1; }
}

/* One made-up owner's day (home/_owner_story), on the night card every example has (tools/_moment, .mo): the kind of
   business and the scene on the left, the day's screens on the right as a timeline, each with what came of it in the margin. The card
   is dark in both themes (color-scheme: dark flips every light-dark token inside it), in Shopify's checkout colours:
   teal-black with a green glow, mint for the marks. The .mo card (application.tailwind.css) uses the same --night-*. */
.story { --intro-mono: var(--font-mono, ui-monospace, "SF Mono", Menlo, monospace); padding-top: var(--home-space); }
.story + .intro-grey { margin-top: var(--home-space); }
.story-card {
  --night: #02090a; --night-line: #1c2c30; --night-mint: #36f4a4; --color-ink-muted: #a1a1aa;
  color-scheme: dark; display: grid; gap: 2.5rem; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); border-radius: 1.75rem;
  color: #fafafa; box-shadow: inset 0 0 0 1px var(--night-line);
  background: radial-gradient(50rem 26rem at 0% 0%, rgb(17 52 57 / .9), transparent 70%), var(--night);
}
.story-who { display: grid; align-content: space-between; gap: 2rem; }
.story-person small { display: block; color: var(--color-ink-muted); font-size: .875rem; }
.story-quote { max-width: 20ch; color: #fafafa; font-weight: 400; text-wrap: balance; }
.story-card .intro-label { color: var(--night-mint); }
.story-day { position: relative; margin-top: 1rem; }
.story-day::before { content: ""; position: absolute; inset: 1.25rem auto 1.25rem .3125rem; width: 1px; background: var(--night-line); }
.story-day li { position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: baseline; gap: 1rem; padding: .875rem 0 .875rem 1.75rem; }
.story-day li::before { content: ""; position: absolute; top: 1.3rem; left: 0; width: .6875rem; height: .6875rem; border-radius: 9999px; background: var(--night); box-shadow: inset 0 0 0 2px var(--night-mint); }
.story-day time { color: var(--night-mint); font-family: var(--intro-mono); font-size: .75rem; white-space: nowrap; }
.story-tool { display: flex; align-items: center; gap: .375rem; color: #fafafa; font-size: .8125rem; font-weight: 650; }
.story-tool svg { color: var(--night-mint); }
.story-line { display: block; margin-top: .125rem; color: #d4d4d8; font-size: .9375rem; line-height: 1.45; }
.story-figure { font-family: var(--intro-mono); font-size: .875rem; font-weight: 650; white-space: nowrap; }
.story-foot { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; padding-top: 1rem; border-top: 1px solid var(--night-line); color: var(--night-mint); font-size: .875rem; font-weight: 600; }
@media (min-width: 64rem) {
  .story-card { grid-template-columns: 5fr 7fr; column-gap: 4rem; }
}
@media (max-width: 47.99rem) {
  .story-day li { grid-template-columns: minmax(0, 1fr) auto; row-gap: .25rem; }
  .story-day time { grid-column: 1 / -1; }
}

@media (max-width: 63.99rem) {
  .home-shelf-grid.home-shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-job { padding: 1rem; }
  .home-job-heading { flex-wrap: wrap; padding-bottom: 1rem; }
  .home-estimate { padding: 1.25rem; }
}
@media (max-width: 47.99rem) {
  .home-start { max-width: 100%; }
  .intro-stage .home-job { width: 100%; max-width: 35rem; }
  .home-job-heading { flex-wrap: nowrap; }
  .home-shelf-grid.home-shelf-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; margin-top: 1.75rem; }
  .home-shelf { padding: 1.125rem 1rem .875rem; border-radius: 1rem; }
  .home-shelf h3 { margin-top: .375rem; font-size: 1.25rem; }
  .home-shelf-line { margin-top: .25rem; font-size: .875rem; }
  .home-shelf ul { margin-top: .875rem; }
  .home-shelf-tool { padding: .625rem .75rem; }
  .home-shelf-signed { margin-top: .875rem; }
  .home-shelf ul.home-shelf-more { gap: .25rem; margin-top: .5rem; }
  .home-shelf-more li { padding: .125rem .5rem; font-size: .75rem; }
  .home-shelf-more a { margin: -.125rem -.5rem; padding: .125rem .5rem; }
  .home-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-show-stage { padding: 1rem; border-radius: 1rem; }
}
@media (max-width: 23rem) {
  .home-job { padding: .75rem; }
  .home-estimate { padding: 1rem; }
  .home-job-heading { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .home-estimate, .home-shelf-tool, .home-shelf-arrow { transition: none; }
  .home-estimate:hover { transform: none; }
}
@media (max-width: 25rem) {
  .home-header-cta { padding-inline: .75rem; }
  .home-header-full { display: none; }
  .home-header-short { display: inline; }
}
