/* The services page: the intro and index, the three areas with their photos, offers and examples, the ways to work
   together and the questions. */

.intro { padding-top: 120px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 32px; }
.intro-title { max-width: 9.5em; }
.index { display: flex; flex-wrap: wrap; gap: 4px 36px; padding-top: 12px; }
.index a { font-size: 19px; }

.intro-section + .area-section { border-top: 1px solid var(--line); }
.area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; padding-top: 120px; padding-bottom: 120px; }
.area-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.area-copy .btn { margin-top: 8px; }
.area-photo { width: 100%; margin-top: 24px; aspect-ratio: 4 / 3; }
.area-text { font-size: 18px; max-width: 24em; }
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; margin: 0; }
.offers dt { font-size: 19px; font-weight: 400; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 8px; }
.offers dd { color: var(--muted); font-size: 16px; }
.examples { margin-top: 56px; padding: 32px 36px; border-radius: 12px; display: flex; flex-direction: column; gap: 18px; }
.examples-ground { background: var(--bg); }
.examples ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.examples li { display: flex; gap: 14px; align-items: baseline; }
.examples li::before { content: ""; flex: 0 0 12px; height: 1.5px; margin-top: .8em; background: var(--ember); }

.models-section { padding-top: 128px; padding-bottom: 136px; display: flex; flex-direction: column; gap: 64px; }
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.model { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1.5px solid var(--fg); }
.model ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 15px; padding-top: 6px; }
.model li { display: flex; gap: 12px; align-items: baseline; }
.model li::before { content: ""; flex: 0 0 10px; height: 1.5px; margin-top: .75em; background: var(--fg); }

.faq-section { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 72px; padding-top: 128px; padding-bottom: 136px; }
.faq { interpolate-size: allow-keywords; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1.5px solid var(--fg); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 20px; font-weight: 300; letter-spacing: -.01em; cursor: pointer; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover .plus { color: var(--ember); }
.faq .plus { flex: 0 0 auto; transition: transform .25s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { padding: 0 0 28px; color: var(--muted); max-width: 36em; }

/* Scroll-linked motion of the services page: the offers come in pairs, the right one a moment after the left. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .offers > :nth-child(even) { animation-range: entry 80px entry 320px; }
  }
}

@media (max-width: 900px) {
  .area { grid-template-columns: repeat(1, minmax(0, 1fr)); padding-top: 72px; padding-bottom: 72px; }
  .offers { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 28px; }
  .examples { padding: 24px; }
  .models { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .faq summary { font-size: 17px; }
}

/* Phones held upright: closer sections, a smaller index and offer titles, and the examples and questions with less
   padding. */
@media (max-width: 600px) {
  .intro { padding-top: 64px; padding-bottom: 56px; gap: 24px; }
  .index { gap: 0 24px; }
  .index a { font-size: 17px; }
  .area { padding-top: 56px; padding-bottom: 64px; gap: 32px; }
  .area-text { font-size: 17px; }
  .area-copy .btn { align-self: stretch; }
  .offers dt { font-size: 17px; }
  .offers dd { font-size: 15px; }
  .examples { margin-top: 40px; padding: 20px; }
  .models-section { padding-top: 72px; padding-bottom: 80px; gap: 40px; }
  .models { gap: 32px; }
  .faq-section { padding-top: 72px; padding-bottom: 80px; gap: 24px; }
  .faq summary { font-size: 17px; padding: 18px 0; }
}
