/* =============================================================================
   BillGrid public site: a /for/{slug} page's big moments (pages/for/service-companies.html). A statement and one
   line over a full-width close-up of the real app (outer/spotlight.css), a pair of smaller ones side by side, the
   price as an ink band, the trades as a row of marks. Few words, so the type carries the page.
   ============================================================================= */

.sg-hero { padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 88px); text-align: center; }
.sg-hero h1 { margin-top: 14px; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(48px, 8vw, 112px); line-height: .95; letter-spacing: -.04em; text-wrap: balance; }
.sg-hero .lead { max-width: 32em; margin: 22px auto 0; text-wrap: balance; }
.sg-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin-top: 30px; }
.sg-hero__note { font-size: var(--fs-sm); color: var(--caption); }
.sg-hero__shot { margin-top: clamp(40px, 6vw, 72px); text-align: left; }

.sg-chapter { padding-block: clamp(64px, 9vw, 128px); text-align: center; }
.sg-chapter + .sg-chapter { border-top: 1px solid var(--line); }
.sg-chapter h2, .sg-pair__item h2, .sg-trades h2 { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: var(--fs-d1); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.sg-chapter .lead { max-width: 30em; margin: 18px auto 0; text-wrap: balance; }
.sg-chapter .spotlight { margin-top: clamp(32px, 5vw, 56px); text-align: left; }

/* two smaller moments side by side; stacked on a phone */
.sg-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px); align-items: stretch; }
.sg-pair__item { display: grid; grid-template-rows: auto auto 1fr; justify-items: center; min-width: 0; }
.sg-pair__item h2 { font-size: var(--fs-d2); }
.sg-pair__item .lead { margin-top: 14px; max-width: 22em; }
.sg-pair__item .spotlight { display: flex; flex-direction: column; justify-content: center; width: 100%; }
.sg-pair__item .spotlight--rise { justify-content: flex-end; }
@media (max-width: 860px) { .sg-pair { grid-template-columns: 1fr; } }

/* the price, as a statement on ink */
.sg-price { padding-block: clamp(72px, 10vw, 136px); background: var(--sand-900); color: var(--sand-50); text-align: center; }
.sg-price h2 { color: inherit; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(56px, 10vw, 144px); line-height: .9; letter-spacing: -.045em; }
.sg-price__line { max-width: 28em; margin: 22px auto 0; font-size: var(--fs-lead); color: color-mix(in srgb, var(--sand-50), transparent 22%); }
.sg-price__them { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; list-style: none; }
.sg-price__them li { display: flex; gap: 8px; align-items: baseline; padding: 8px 16px; border: 1px solid color-mix(in srgb, var(--sand-50), transparent 80%); border-radius: var(--r-pill); font-size: var(--fs-sm); }
.sg-price__them b { font-weight: 600; }
.sg-price__them a { color: inherit; text-underline-offset: 3px; }
.sg-price__them span { color: color-mix(in srgb, var(--sand-50), transparent 35%); font-variant-numeric: tabular-nums; }
.sg-price__note { margin-top: 14px; font-size: var(--fs-xs); color: color-mix(in srgb, var(--sand-50), transparent 45%); }

/* the trades: a shelf of stories (fragments/trade-stories.html), the hub's reason for being */
.sg-trades { padding-block: clamp(72px, 10vw, 144px); }
.sg-trades__head { max-width: 760px; margin-inline: auto; text-align: center; }
.sg-trades__head .lead { max-width: 30em; margin: 18px auto 0; text-wrap: balance; }
.sg-trades__fit { max-width: 34em; margin: clamp(32px, 4vw, 48px) auto 0; text-align: center; color: var(--text-muted); text-wrap: balance; }

/* a story card: the whole card is the link; its art is a real screen in miniature, its top left corner in view */
.story-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
.story-shelf--more { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.story-card { --spot: var(--stage-gold); display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: clamp(18px, 2.4vw, 28px); background: var(--bg-panel); color: var(--ink); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.story-card--sage { --spot: var(--stage-sage); }
.story-card--sky { --spot: var(--stage-sky); }
.story-card--clay { --spot: var(--stage-clay); }
.story-card--sand { --spot: var(--stage-sand); }
.story-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold), transparent 40%); box-shadow: var(--shadow-card); }
.story-card:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.story-card__art { position: relative; display: block; height: clamp(200px, 22vw, 280px); overflow: hidden; background: radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 58%), var(--spot); }
.story-card__art img { position: absolute; top: 28px; left: 28px; width: var(--art-w); max-width: none; height: auto; border-radius: 10px; box-shadow: 0 30px 60px -36px rgba(40, 32, 16, .5), 0 0 0 1px rgba(40, 32, 16, .07); transition: translate .5s ease; }
.story-card:hover .story-card__art img { translate: -12px -8px; }
.story-card__body { display: grid; align-content: start; gap: 10px; padding: clamp(20px, 2.4vw, 28px); }
.story-card__trade { display: inline-flex; align-items: center; gap: var(--icon-gap-sm); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.story-card__title { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.story-card__who { font-size: var(--fs-sm); color: var(--text-muted); }
.story-card__go { display: inline-flex; align-items: center; gap: var(--icon-gap-sm); margin-top: 6px; font-weight: 600; color: var(--ink); }
.story-card:hover .story-card__go { color: var(--gold-deep); }
.story-shelf--more .story-card__art { height: 180px; }
.story-shelf--more .story-card__title { font-size: clamp(20px, 2vw, 24px); }
@media (max-width: 760px) { .story-shelf { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .story-card, .story-card__art img { transition: none; } .story-card:hover { transform: none; } }

/* a trade's story (pages/for/<trade>.html): the cover, the business it follows, its month in dated chapters */
.ts-cover { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 64px); }
.ts-cover .kicker { display: inline-flex; align-items: center; gap: var(--icon-gap-sm); }
.ts-cover h1 { margin-top: 14px; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(44px, 6.4vw, 92px); line-height: .96; letter-spacing: -.04em; text-wrap: balance; }
.ts-cover .lead { max-width: 30em; margin-top: 22px; text-wrap: pretty; }
.ts-cover .sg-hero__cta { justify-content: flex-start; }
/* the business the story follows: a card, as if pinned to the page */
.ts-meet { padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: clamp(18px, 2.4vw, 24px); background: var(--bg-panel); box-shadow: var(--shadow-card); }
.ts-meet__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-deep); }
.ts-meet h2 { margin-top: 18px; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -.02em; }
.ts-meet__where { margin-top: 6px; font-size: var(--fs-sm); color: var(--text-muted); }
.ts-meet dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.ts-meet dt { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(26px, 2.6vw, 34px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.ts-meet dd { margin: 6px 0 0; font-size: var(--fs-xs); line-height: 1.35; color: var(--text-muted); }
.ts-meet__note { margin-top: 18px; font-size: var(--fs-xs); color: var(--caption); }
@media (max-width: 860px) { .ts-cover { grid-template-columns: 1fr; } }

/* the month: chapters down a dated thread, each a statement, one line and a real screen */
.ts-month { padding-block: clamp(24px, 4vw, 48px) clamp(72px, 9vw, 128px); }
.ts-chapters { position: relative; display: grid; gap: clamp(72px, 10vw, 136px); margin: 0; padding: 0; list-style: none; }
/* the thread between chapters: from one screen down to the next date */
.ts-chapter + .ts-chapter::before { content: ""; position: absolute; bottom: calc(100% + 12px); left: 50%; width: 1px; height: calc(clamp(72px, 10vw, 136px) - 24px); background: linear-gradient(transparent, var(--line) 40%); }
.ts-chapter { position: relative; display: grid; justify-items: center; text-align: center; }
.ts-chapter__when { position: relative; z-index: 1; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.ts-chapter h2 { margin-top: 22px; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: var(--fs-d1); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.ts-chapter .lead { max-width: 30em; margin-top: 18px; text-wrap: balance; }
.ts-chapter .spotlight { position: relative; z-index: 1; width: 100%; margin-top: clamp(32px, 5vw, 56px); text-align: left; }
.ts-chapter .spotlight--rise { width: min(100%, 560px); }

/* what goes on the trade's invoice, beside the real sample sheet of its free template */
.ts-paper { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.ts-paper h2 { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: var(--fs-d2); line-height: 1.02; letter-spacing: -.03em; }
.ts-paper ul { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.ts-paper li { display: grid; gap: 4px; padding-left: 18px; border-left: 2px solid var(--gold-soft); }
.ts-paper li b { font-weight: 600; color: var(--ink); }
.ts-paper li span { color: var(--text-muted); }
.ts-paper__sheet { display: grid; gap: 14px; justify-items: center; color: var(--ink); font-weight: 600; text-decoration: none; }
.ts-paper__sheet img { width: min(100%, 360px); height: auto; border-radius: 6px; box-shadow: 0 40px 80px -48px rgba(40, 32, 16, .55), 0 0 0 1px rgba(40, 32, 16, .08); transition: transform .3s ease; }
.ts-paper__sheet:hover img { transform: translateY(-4px) rotate(-.6deg); }
.ts-paper__sheet span { display: inline-flex; align-items: center; gap: var(--icon-gap-sm); }
.ts-paper__sheet:hover span { color: var(--gold-deep); }
.ts-paper--text { grid-template-columns: minmax(0, 1fr); }
.ts-paper--text ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; }
@media (max-width: 860px) { .ts-paper { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ts-paper--text ul { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ts-paper__sheet img { transition: none; } .ts-paper__sheet:hover img { transform: none; } }

/* more stories, under each story */
.ts-more { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.ts-more h2 { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: var(--fs-d2); line-height: 1; letter-spacing: -.03em; text-align: center; }
.ts-more .story-shelf { margin-top: clamp(28px, 4vw, 44px); }

/* the questions and links, on the page's center line */
.sg-more { max-width: calc(780px + 2 * var(--site-gutter)); }

/* the close: one line and one button */
.sg-close { padding-block: clamp(72px, 10vw, 136px); border-top: 1px solid var(--line); background: var(--sand-50); text-align: center; }
.sg-close h2 { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: var(--fs-d1); line-height: 1; letter-spacing: -.035em; }
.sg-close .btn { margin-top: 32px; }
.sg-close .sg-hero__note { margin-top: 14px; }
