/* ==========================================================================
   WEBSITE 2.0 PAGES: the homepage, and what the About and Pricing pages
   share with it

   From the Figma file "Website 2.0" and its desktop prototype (a 1512px
   frame). The mock apps inside each illustration live in mockups.css; the
   buttons, header and footer in main.css.

   Only these pages load this file, so its rules can name elements and
   sections directly. Each section has one class, and its parts are found by
   their place in it:

     .hero       the opening headline, lede and buttons
     .demo       the kanban demo, with .quote scrolling up over it
     .quote      a large statement, swept from light to dark as it scrolls
     .features   three articles, each an illustration and its words
     .steps      a heading with buttons, then three illustrated steps
     .panel      a heading and lede, then an illustration and cards in a frame
     .showcase   a heading with arrows, then a row of templates
     .faq        questions that open one at a time
     .cta        the closing call to action

   The illustrations have elements of their own (lists, paragraphs, images),
   so rules that reach past a <figure> use child combinators.

   Layout: the content is 1230px wide at the 1512px design width, the same
   bound as the shared header and footer. Breakpoints match the rest of the
   site: 700px, 901px and 1180px.
   ========================================================================== */

body {
  /* Side gutter: the site's grid margin, growing once the 1230px content
     width is reached */
  --edge: max(var(--grid-margin, 24px), calc((100vw - 1230px) / 2));
  background: var(--background-surface-light);
  color: var(--text-regular);
}

main {
  overflow-x: clip;
}

/* Sections capped at the 1512px design width work out their gutter from
   that width, not the window's, or wide windows squeeze their content */
:is(.hero, .demo, .features, .steps, .panel, .showcase) {
  --edge: max(var(--grid-margin, 24px), calc((min(100vw, 1512px) - 1230px) / 2));
}

main figure {
  margin: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

main [id] {
  scroll-margin-top: 64px;
}

/* --------------------------------------------------------------------------
   Section headings: a first part in the brand gradient (the <span>), the
   rest light. A <br> splits the two on wider screens.
   -------------------------------------------------------------------------- */

:is(.features, .steps, .panel, .showcase) h2 {
  margin: 0;
  font-family: var(--font-family-brand);
  font-weight: 400;
  font-size: 48px;
  line-height: 48px;
  letter-spacing: -1.92px;
  color: var(--text-light);
}

:is(.features, .steps, .panel, .showcase, .faq) h2 span {
  padding-block: 0.2em;
  background-image: linear-gradient(to left, var(--text-brand), var(--icon-discovery));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1512px;
  margin-inline: auto;
  padding: 128px var(--edge) 40px;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-family-brand);
  font-weight: 400;
  font-size: 72px;
  line-height: 68px;
  letter-spacing: -2.88px;
  color: var(--text-strong);
}

.hero h1 span {
  display: block;
  color: var(--text-light);
}

.hero h1 + p {
  margin: 0;
  min-height: 28px;
  display: flex;
  align-items: center;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.36px;
  color: var(--text-light);
}

/* The buttons, with the free note at the far end */
.hero p:has(> .button) {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 16px 0 0;
}

.hero small {
  margin-left: auto;
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.56px;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   Demo: the kanban animation in an iframe, over a gradient wash that sticks
   while the quote scrolls up, then is released
   -------------------------------------------------------------------------- */

.demo {
  position: relative;
  max-width: 1512px;
  margin-inline: auto;
}

/* The wash, in a track the height of the demo */
.demo > div {
  position: absolute;
  top: -66px;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.demo > div > div {
  position: sticky;
  top: max(0px, calc(50vh - 370px));
  width: 100%;
  height: 739px;
  background: url("/assets/home/bg-48-7200.webp") 50% 0 / 1512px 739px no-repeat;
}

.demo figure {
  position: relative;
  z-index: 1;
  height: 600px;
  overflow: hidden;
}

.demo iframe {
  display: block;
  width: 1512px;
  height: 600px;
  border: 0;
  background: transparent;
  color-scheme: light;
  transform-origin: 0 0;
}

/* --------------------------------------------------------------------------
   Quote: rises and un-blurs, then a sweep turns each line from light to
   regular as it scrolls (home.js splits each paragraph into its lines);
   line breaks are measured at this size
   -------------------------------------------------------------------------- */

.quote {
  position: relative;
  padding: 180px var(--edge) 220px;
}

.quote p {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 732px;
  margin: 0 auto;
  font-family: var(--font-family-brand);
  font-size: 48px;
  line-height: 48px;
  letter-spacing: -1.92px;
  text-align: center;
  color: var(--text-light);
}

/* While home.js measures the lines, a word never wraps inside itself
   (at the hyphen in "AI-native", say) */
.quote .qw {
  white-space: nowrap;
}

.quote .qline {
  display: block;
  width: fit-content;
  white-space: nowrap; /* already split into the lines it wraps to */
  margin: -12px auto;
  padding: 24px 4px;
  line-height: 24px;
  background: linear-gradient(90deg, var(--text-regular) 0%, var(--text-regular) 33%, var(--text-disabled) 67%, var(--text-disabled) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reveal {
  opacity: 0;
  filter: blur(8px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1), filter 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.is-in {
  opacity: 1;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }

  .quote .qline {
    background: none;
    -webkit-text-fill-color: var(--text-regular);
  }
}

/* --------------------------------------------------------------------------
   Entry animations: rise, fade and un-blur once, as each part scrolls in
   (home.js adds these classes)
   -------------------------------------------------------------------------- */

.fx-in {
  opacity: 0;
  transform: translateY(48px);
  filter: blur(8px);
  transition:
    opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1),
    filter 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fx-in.fx-noblur {
  filter: none;
}

.fx-in.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.fx-d1 { transition-delay: 0.12s; }
.fx-d2 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .fx-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Features: each article is an illustration, then its words, which stick
   beside it while it scrolls past
   -------------------------------------------------------------------------- */

.features {
  max-width: 1512px;
  margin-inline: auto;
}

.features > h2 {
  padding-inline: var(--edge);
}

.features article {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(48px, 6.35vw, 96px); /* 96px at 1512px */
  min-height: 696px; /* the 600px the words stick within, and the padding */
  padding: 96px var(--edge) 0 var(--grid-margin, 24px);
}

.features article:first-of-type {
  min-height: 632px;
  padding-top: 32px;
}

.features article > figure {
  flex: 1 1 0;
  min-width: 0;
  max-width: 853px;
}

.features article > div {
  position: sticky;
  top: 32px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 358px;
  padding: 80px 0 64px;
}

.features article > div > h3 {
  margin: 0;
  font-family: var(--font-family-brand);
  font-weight: 400;
  font-size: 32px;
  line-height: 32px;
  letter-spacing: -1.28px;
  color: var(--text-regular);
}

.features article > div > p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.32px;
  color: var(--text-regular);
}

/* --------------------------------------------------------------------------
   Sections with a heading row: steps, panels and showcase
   -------------------------------------------------------------------------- */

:is(.steps, .panel, .showcase) {
  max-width: 1512px;
  margin-inline: auto;
  padding-top: 180px;
}

/* The heading row: a heading and its lede (or arrows) side by side */
:is(.steps, .panel, .showcase) > header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-inline: var(--edge);
}

.panel > header > p {
  flex: 0 1 358px;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.32px;
  color: var(--text-regular);
}

/* The steps: a heading over its buttons, then the three steps */
.steps > header {
  flex-direction: column;
  justify-content: flex-start;
  gap: 32px;
  margin-bottom: 32px;
}

.steps > header > p {
  display: flex;
  gap: 16px;
  margin: 0;
}

.steps > ol {
  display: flex;
  gap: 16px;
  margin: 0 auto;
  padding: 0 var(--edge);
  list-style: none;
}

.steps > ol > li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Panels: an illustration and a row of text cards in one framed box
   -------------------------------------------------------------------------- */

.panel > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-inline: var(--edge);
  padding: 6px;
  border: 1px solid var(--border-disabled);
  border-radius: 20px;
}

.panel > div > figure {
  min-width: 0;
}

.panel > div > ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
}

.panel > div > ul > li {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  min-width: 0;
}

.panel > div > ul > li + li {
  border-left: 1px solid var(--border-light);
}

.panel > div > ul > li > img {
  display: block;
  width: 24px;
  height: 24px;
}

.panel > div > ul > li > :is(h3, p) {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.64px;
}

.panel > div > ul > li > h3 {
  margin-bottom: -16px;
  color: var(--text-regular);
}

.panel > div > ul > li > p {
  color: var(--text-light);
}

/* A closing line under the cards */
.panel > div > p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.64px;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   Showcase: templates from the console's catalogue (src/_data/templates.json),
   in a row that scrolls sideways one card at a time. Each card is a
   screenshot, then the template's tile beside its name, description and
   author.
   -------------------------------------------------------------------------- */

.showcase h2 {
  color: var(--text-regular);
}

/* "have made." on a line of its own, in the same colour */
.showcase h2 span {
  display: block;
  padding: 0;
  background: none;
  color: inherit;
}

.showcase > header > p {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0;
  padding-top: 8px;
}

.showcase > header button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-regular);
  border-radius: 100px;
  background: var(--background-surface-light);
  color: var(--icon-regular);
  cursor: pointer;
}

.showcase > header button svg {
  width: 28px;
  height: 28px;
}

.showcase > header button:disabled {
  border-color: var(--border-light);
  color: var(--icon-disabled);
  cursor: default;
}

.showcase > header button:focus-visible {
  outline: 2px solid var(--border-focused);
  outline-offset: 2px;
}

.showcase > ul {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0 var(--edge);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.showcase > ul::-webkit-scrollbar {
  display: none;
}

/* Keeps the last card off the edge; some browsers drop the end padding */
.showcase > ul::after {
  content: "";
  flex: none;
  width: 1px;
  margin-left: calc(var(--edge) - 17px);
}

.showcase > ul > li {
  flex: none;
  width: min(399px, 80vw);
  scroll-snap-align: start;
}

.showcase li > a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 24px 16px;
  padding-bottom: 24px;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}

/* The screenshot */
.showcase li > a > span:first-child {
  grid-column: 1 / -1;
  display: block;
  height: 300px;
  padding: 40px;
  border-radius: 16px;
  background: var(--background-surface-regular);
}

.showcase li > a > span:first-child img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 0;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--border-light), 0 8px 24px -12px rgba(15, 23, 42, 0.18);
  transition: transform var(--motion-duration-hover) var(--motion-easing-standard);
}

.showcase li > a:hover > span:first-child img {
  transform: translateY(-4px);
}

/* The tile */
.showcase li > a > img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--background-surface-strong);
}

/* The name, description and author */
.showcase li > a > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.showcase li > a > span:last-child > :is(strong, span) {
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.64px;
}

.showcase li > a strong {
  margin-bottom: -8px;
  color: var(--text-strong);
}

.showcase li > a > span:last-child > span {
  color: var(--text-light);
}

.showcase li > a:is(:hover, :focus-visible) strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.showcase li > a:focus-visible {
  outline: 2px solid var(--border-focused);
  outline-offset: 4px;
}

.showcase li > a small {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: -0.48px;
  color: var(--text-light);
}

/* The author's initial */
.showcase li > a small > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 100px;
  background: var(--background-surface-strong);
  font-family: var(--font-family-brand);
  font-size: 12px;
  line-height: 12px;
  color: var(--text-strong);
}

@media (prefers-reduced-motion: reduce) {
  .showcase li > a > span:first-child img {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   FAQ: each question is a button that opens the answer under it (home.js
   keeps one open at a time, and sets aria-expanded)
   -------------------------------------------------------------------------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 732px;
  box-sizing: content-box;
  margin-inline: auto;
  padding: 160px var(--edge) 0;
}

.faq h2 {
  margin: 0;
  font-family: var(--font-family-brand);
  font-weight: 400;
  font-size: 48px;
  line-height: 48px;
  letter-spacing: -1.92px;
  color: var(--text-light);
}

.faq h2 span {
  padding: 0;
  color: #0000;
}

.faq ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: clip;
}

.faq li {
  background: var(--background-surface-light);
  transition: background-color var(--motion-duration-hover) var(--motion-easing-standard);
}

.faq li + li {
  border-top: 1px solid var(--border-light);
}

.faq li:hover {
  background: var(--background-surface-regular);
}

.faq h3 {
  margin: 0;
  font: inherit;
}

.faq button {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 16px 16px 24px;
  font-family: var(--font-family-secondary);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.64px;
  color: var(--text-light);
  cursor: pointer;
  transition:
    padding-bottom 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    color var(--motion-duration-hover) var(--motion-easing-standard);
}

.faq button[aria-expanded="true"] {
  padding-bottom: 8px;
}

.faq li:hover button,
.faq button[aria-expanded="true"] {
  color: var(--text-regular);
}

.faq button:focus-visible {
  outline: 2px solid var(--border-focused);
  outline-offset: -2px;
  border-radius: inherit;
}

/* The chevron, in a 40px circle */
.faq button svg {
  flex: none;
  box-sizing: content-box;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 100px;
  color: var(--icon-regular);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.faq button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* The answer grows open from nothing */
.faq [role="region"] {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.faq li:has([aria-expanded="true"]) [role="region"] {
  grid-template-rows: 1fr;
}

.faq [role="region"] p {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 48px 0 24px;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -0.4px;
  color: var(--text-regular);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* The space under the answer, inside what is hidden when it is shut */
.faq [role="region"] p::after {
  content: "";
  display: block;
  height: 16px;
}

.faq li:has([aria-expanded="true"]) [role="region"] p {
  opacity: 1;
  transition-delay: 0.06s;
}

@media (prefers-reduced-motion: reduce) {
  .faq [role="region"],
  .faq [role="region"] p,
  .faq button,
  .faq button svg {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 680px;
  box-sizing: content-box;
  margin-inline: auto;
  padding: 128px var(--edge);
  text-align: center;
}

.cta > img {
  display: block;
  width: 56px;
  height: 32px;
}

.cta h2 {
  margin: 0 0 -8px;
  font-family: var(--font-family-brand);
  font-weight: 400;
  font-size: 80px;
  line-height: 76px;
  letter-spacing: -3.2px;
  color: var(--text-primary, #45556c);
}

.cta h2 span {
  padding-bottom: 0.12em;
  background-image: linear-gradient(100.9deg, #7b6bb5 0%, #646444 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The line under the heading */
.cta h2 + p:not(:last-child) {
  max-width: 445px;
  margin: -8px 0 0;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.36px;
  color: #45556c;
}

/* The button, and the free note under it */
.cta p:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.cta small {
  display: flex;
  align-items: center;
  min-height: 28px;
  font-weight: 500;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: -0.48px;
  color: var(--text-light);
}

/* ==========================================================================
   Narrower screens
   ========================================================================== */

/* Below 1180px: feature rows and card rows stack */
@media (max-width: 1179px) {
  .features article,
  .features article:first-of-type {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 24px;
    min-height: 0;
    padding: 96px var(--edge) 0;
  }

  .features article:first-of-type {
    padding-top: 40px;
  }

  .features article > figure {
    max-width: none;
  }

  .features article > div {
    position: static;
    width: auto;
    max-width: 560px;
    padding: 0;
  }

  :is(.panel, .showcase) > header {
    flex-direction: column;
    gap: 24px;
  }

  .showcase > header {
    flex-direction: row;
    align-items: flex-end;
  }

  .panel > header > p {
    flex: none;
    max-width: 640px;
  }

  :is(.steps, .panel, .showcase) {
    padding-top: 120px;
  }

  .quote {
    padding-top: 96px;
    padding-bottom: 120px;
  }

  .faq {
    padding-top: 120px;
  }

  .panel > div > ul {
    flex-wrap: wrap;
  }

  .panel > div > ul > li {
    flex: 1 1 280px;
  }
}

/* Below 900px: the steps stack, and the type steps down */
@media (max-width: 899px) {
  .steps > ol {
    flex-direction: column;
    align-items: center;
  }

  .steps > ol > li {
    flex: none;
    width: 100%;
    max-width: 400px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero h1 {
    font-size: 56px;
    line-height: 56px;
    letter-spacing: -2.24px;
  }

  :is(.features, .steps, .panel, .showcase, .faq) h2 {
    font-size: 40px;
    line-height: 42px;
    letter-spacing: -1.6px;
  }

  .quote p {
    font-size: 36px;
    letter-spacing: -1.44px;
  }

  .quote .qline {
    padding-block: 18px;
    margin-block: -9px;
  }

  .cta h2 {
    font-size: 56px;
    line-height: 56px;
    letter-spacing: -2.24px;
  }
}

/* Phones: the "Homepage Mobile" frame in the Website 2.0 Figma file
   (node 149:30942), drawn at 390px wide */
@media (max-width: 699px) {
  body {
    --edge: 24px;
  }

  /* Hero: the two halves of the title run on as one sentence */
  .hero {
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 40px;
    letter-spacing: -1.6px;
  }

  .hero h1 span {
    display: inline;
  }

  .hero h1 + p {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.32px;
    color: var(--text-regular);
  }

  .hero p:has(> .button) {
    flex-wrap: wrap;
    gap: 16px 20px;
    margin-top: 0;
  }

  .hero small {
    flex-basis: 100%;
    margin-left: 0;
  }

  /* Section headings: 32px, and run on as one line of text */
  :is(.features, .steps, .panel, .showcase, .faq) h2 {
    font-size: 32px;
    line-height: 32px;
    letter-spacing: -1.28px;
  }

  :is(.features, .steps, .panel, .showcase, .cta) h2 br {
    display: none;
  }

  .quote {
    padding: 128px var(--edge);
  }

  .quote p {
    font-size: 32px;
    line-height: 32px;
    letter-spacing: -1.28px;
  }

  .quote .qline {
    padding-block: 16px;
    margin-block: -8px;
  }

  /* Features: picture first, then the words, each block 64px apart */
  .features > h2 {
    padding-bottom: 16px;
  }

  .features article,
  .features article:first-of-type {
    flex-direction: column;
    gap: 24px;
    padding: 0 0 64px;
  }

  .features article:last-child {
    padding-bottom: 0;
  }

  .features article > figure {
    align-self: stretch;
    margin-inline: 8px;
    border-radius: 16px;
  }

  .features article > figure > .mock {
    border-radius: 16px;
  }

  .features article > div {
    gap: 8px;
    max-width: none;
    padding: 0 32px;
  }

  .features article > div > h3 {
    font-size: 28px;
    line-height: 28px;
    letter-spacing: -1.12px;
  }

  .features article > div > p {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: -0.28px;
    color: var(--text-light);
  }

  /* Illustrations keep a readable size and are cropped to their box
     (home.js reads --phone-zoom), 8px in from the screen edges */
  .features article > figure,
  .panel > div > figure {
    display: flex;
    justify-content: var(--phone-align, center);
    overflow: clip;
  }

  .mock-tools { --phone-zoom: 0.643; }
  .features figure:has(> .mock-feat2-invoices) { --phone-zoom: 0.583; --phone-align: flex-start; }
  .features figure:has(> .mock-board-demo) { --phone-zoom: 0.583; --phone-align: flex-end; }
  .panel figure:has(> .mock-sheet) { --phone-zoom: 0.646; }
  .panel figure:has(> .mock-built) { --phone-zoom: 1; }

  /* Sections: 128px apart, 16px from the screen edge */
  :is(.steps, .panel, .showcase) {
    padding-top: 128px;
  }

  :is(.steps, .panel, .showcase) > header,
  .steps > ol {
    padding-inline: 16px;
  }

  .panel > div {
    margin-inline: 8px;
  }

  :is(.steps, .panel, .showcase) > header {
    gap: 24px;
    margin-bottom: 24px;
  }

  .steps > header > p {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .steps > header .button {
    padding: 8px 24px;
  }

  .steps > header .button.outline {
    gap: 12px;
    padding-right: 12px;
  }

  .steps > ol > li {
    max-width: none;
  }

  .panel > div > ul > li {
    flex-basis: 100%;
    padding: 24px 28px;
  }

  .panel > div > ul > li + li {
    border-left: 0;
    border-top: 1px solid var(--border-light);
  }

  /* Showcase: heading, then the row, then the arrows centred under it */
  .showcase {
    display: flex;
    flex-direction: column;
  }

  .showcase > header {
    display: contents;
  }

  .showcase h2 {
    padding-inline: 16px;
    margin-bottom: 24px;
  }

  .showcase h2 span {
    display: block;
    width: fit-content;
    padding-block: 0.2em;
    margin-block: -0.2em;
    background-image: linear-gradient(to left, var(--text-brand), var(--icon-discovery));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .showcase > ul {
    gap: 8px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }

  .showcase > ul::after {
    margin-left: -1px;
  }

  .showcase > ul > li {
    width: min(358px, calc(100vw - 32px));
  }

  .showcase li > a {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 0;
  }

  .showcase li > a > span:first-child {
    height: 300px;
    padding: 20px;
  }

  .showcase li > a > img,
  .showcase li > a small {
    display: none;
  }

  .showcase li > a > span:last-child {
    display: block;
    padding: 0 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .showcase li > a > span:last-child > :is(strong, span) {
    display: inline;
  }

  .showcase li > a strong {
    margin: 0 4px 0 0;
  }

  .showcase > header > p {
    order: 2;
    justify-content: center;
    padding-top: 24px;
  }

  .faq {
    gap: 24px;
    padding-top: 80px;
  }

  .cta {
    gap: 24px;
    padding-block: 88px;
  }

  .cta h2 {
    margin-bottom: 0;
    font-size: 44px;
    line-height: 44px;
    letter-spacing: -1.76px;
  }

  .cta h2 + p:not(:last-child) {
    margin-top: 0;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.32px;
    color: var(--text-light);
  }
}

/* Two-up text cards: the card that starts a new row loses its left rule */
@media (min-width: 700px) and (max-width: 1179px) {
  .panel > div > ul > li:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--border-light);
  }
}
