/* Software page. Everything else comes from /assets/site.css. */

/* The line-field canvas behind the header (site.js draws it). */
.page-head--field { position: relative; overflow: hidden; }
.page-head--field .wrap { position: relative; z-index: 1; }
.page-head h1 { max-width: 15ch; }
.head-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.head-cta .btn { margin-top: 0; }

/* --- Case studies: screen and copy side by side, alternating -- */
.case { display: grid; gap: 1.75rem; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-top: 1px solid var(--hairline); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-copy { display: flex; flex-direction: column; gap: 1rem; align-self: center; }
.case-copy .mono { color: var(--accent); }
.case-copy h2.d { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.9rem); max-width: 16ch; }
.case-copy > p { color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.case-copy .bullets { margin-top: .25rem; }
.case-copy .tlink { align-self: flex-start; margin-top: .5rem; padding-block: .5rem; }

.case-media { position: relative; }
/* a laptop screen with the phone version tucked over its corner */
.case-media--duo { padding: 0 8% 14% 0; }
.case-media--duo .phone { position: absolute; right: 0; bottom: 0; width: 25%; min-width: 88px; }
/* a phone on its own sits on a soft panel so it has the same weight as a laptop shot */
.case-media--phone { display: flex; justify-content: center; align-items: flex-start; aspect-ratio: 5 / 4; padding-top: 8%; background: var(--paper-deep); border-radius: var(--radius-card); overflow: hidden; }
.case-media--phone .phone { width: min(46%, 17rem); }

/* --- Websites ----------------------------------------------- */
.websites { background: var(--paper-deep); }
.websites .split { align-items: end; }
.websites .lead { margin-top: 0; }
.sites { display: grid; gap: 3rem; margin-top: 3rem; }
.site { margin: 0; }
.site-shots { position: relative; padding: 0 9% 16% 0; }
.site-shots .phone { position: absolute; right: 0; bottom: 0; width: 24%; min-width: 84px; }
.site figcaption { margin-top: 1.25rem; }
.site figcaption p { margin-top: .5rem; color: var(--ink-2); max-width: 50ch; text-wrap: pretty; }

/* --- Kinds of software (the dark surface) -------------------- */
.kinds { display: grid; gap: 0; margin-top: 2.5rem; }
.kinds li { padding: 1.4rem 0; border-top: 1px solid var(--hairline-on-ink); }
.kinds h3.d { font-size: 1.3rem; }
.kinds h3.d::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 .7rem .2em 0; border-radius: 50%; background: var(--accent-on-ink); }
.kinds p { margin-top: .45rem; color: rgba(247, 246, 243, .72); max-width: 44ch; text-wrap: pretty; }

/* --- FAQ heading sits in the left column --------------------- */
.faq .split > div:first-child .sec-head { margin-bottom: 1.5rem; }

@media (min-width: 620px) {
  .kinds { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}

@media (min-width: 980px) {
  .case { grid-template-columns: 1.25fr .75fr; gap: clamp(2.5rem, 1rem + 4vw, 5rem); }
  .case--flip .case-media { order: 2; }
  .case--flip { grid-template-columns: .75fr 1.25fr; }
  .case-media--phone { aspect-ratio: 16 / 11; }
  .sites { grid-template-columns: 1fr 1fr; gap: 3rem 2.5rem; }
  .kinds { grid-template-columns: repeat(4, 1fr); column-gap: 2rem; }
  .faq .split > div:first-child { position: sticky; top: calc(var(--nav-height) + 2rem); }
}

/* --- Under the hood (after the estate) ----------------------- */
.hood { padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.hood .mono { color: var(--accent); }
.hood-h { margin-top: .6rem; font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); max-width: 20ch; }
.hood-p { margin-top: .8rem; color: var(--ink-2); max-width: 50ch; text-wrap: pretty; }
.hood-p code { font-family: var(--font-mono); font-size: .88em; color: var(--ink); background: var(--paper-deep); padding: .08em .35em; border-radius: 4px; }
.case-copy .spec { margin-top: .25rem; }
