/* Services page: the overview of the four services. It shares the service pages' layout (service-page.css)
   and adds the service cards, the starting point list and the questions. See services-hub.js. */
html:has(.services-hub) { scroll-padding-top: 24px; }

/* Pixel icons for each service (pixel-glyphs.js; base styles in service-page.css). They gather from nothing on hover. */
@media (hover: hover) {
  .sv-card:hover .sv-glyph rect, .sv-start-options a:hover .sv-glyph rect { animation: sv-gather .55s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i) * 22ms); }
}

/* Four ways we can help: one card for each service */
.sv-overview { padding-block: 85px 95px; }
.sv-overview-head { display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, .62fr); gap: 9%; align-items: end; }
.sv-overview-head p { max-width: 46ch; color: var(--muted); }
.sv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 52px; }
.sv-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: #e8e9e6; }
/* Cards side by side share their row heights, so the previews and the titles line up */
@supports (grid-template-rows: subgrid) {
  .sv-card { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
}

/* The top of each card: a small app window showing one example, with a choice of examples below it */
.sv-stage.dp-card { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; min-height: 0; padding: 40px 32px 0; background: radial-gradient(circle, #d6d8d4 1px, transparent 1.3px) 0 0 / 14px 14px; }
.sv-stage .sp-window { position: relative; max-width: 360px; transition: transform .6s cubic-bezier(.34, 1.4, .64, 1), box-shadow .6s; }
.sv-screen { display: flex; flex-direction: column; }
.sv-stage .sv-screen .dp-screen { flex: 1; max-width: none; border-radius: 0; box-shadow: none; animation: sv-screen-in .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes sv-screen-in { from { opacity: 0; } }
.sv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; }
.sv-chips button { position: relative; overflow: hidden; padding: 7px 13px; border: 1px solid #cdd0cc; border-radius: 20px; background: #f4f5f2; color: var(--muted); font: inherit; font-size: 12px; line-height: 1.3; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.sv-chips button:hover { border-color: #8b8e8c; color: var(--ink); }
.sv-chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.sv-chips button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* While the examples take turns, a thin line fills under the one showing */
.sv-chips button::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 1.5px; border-radius: 1px; background: rgba(255, 255, 255, .55); transform: scaleX(0); transform-origin: left; }
.sv-card.is-turning .sv-chips button.is-timed[aria-pressed="true"]::after { animation: sv-dwell 7s linear forwards; }
@keyframes sv-dwell { to { transform: scaleX(1); } }
.sv-caption { width: 100%; max-width: 40ch; margin: 14px auto 0; padding-bottom: 28px; color: var(--muted); font-size: 13px; line-height: 1.45; text-align: center; }

/* The bottom of each card: the service, its promise and the link to its page */
.sv-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 34px 34px; border-top: 1px solid #d3d6d2; background: #efefec; }
.sv-mark { display: flex; justify-content: space-between; align-items: center; align-self: stretch; color: var(--muted); font-size: 12px; }
.sv-mark .sv-glyph { width: 26px; height: 26px; }
.sv-body h3 { margin: 12px 0 0; font-size: clamp(32px, 2.8vw, 42px); line-height: 1.05; letter-spacing: -.035em; }
.sv-body h3 a { text-decoration: none; }
.sv-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.sv-line { margin-top: 8px; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.sv-text { max-width: 50ch; margin: 14px 0 26px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.sv-body .text-link { margin-top: auto; }
@media (hover: hover) {
  .sv-card:hover .sp-window { transform: translateY(-5px); box-shadow: 0 36px 60px -24px rgba(30, 34, 32, .5), 0 0 0 1px rgba(30, 34, 32, .05); }
}

/* How the four fit together: the shared timeline, with a line under each service */
.sv-steps .sp-timeline li strong { display: block; font-weight: 400; }
.sv-steps .sp-timeline li small { display: block; margin-top: 6px; color: #6f706e; font-size: 16px; line-height: 1.4; letter-spacing: 0; transition: color .5s; }
.sv-steps .sp-timeline li.is-on small { color: var(--muted); }

/* Start where it helps most */
.sv-start { display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, .62fr); gap: 9%; padding-block: 85px; border-top: 1px solid var(--rule); }
.sv-start-intro p { max-width: 39ch; margin-top: 25px; color: var(--muted); }
.sv-start-options a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 17px; gap: 26px; align-items: center; padding: 25px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.sv-start-options a:last-child { border-bottom: 1px solid var(--rule); }
.sv-start-options .sv-glyph { width: 22px; height: 22px; }
.sv-start-options a > span:nth-child(2) { color: var(--muted); font-size: 15px; }
.sv-start-options strong { font-size: 24px; font-weight: 400; letter-spacing: -.025em; }
.sv-start-options a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
@media (hover: hover) { .sv-start-options a:hover .arrow { transform: translateX(4px); } }

/* A few useful answers */
.sv-faq { display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, .62fr); gap: 9%; padding-block: 85px; border-top: 1px solid var(--rule); }
.sv-faq h2 { position: sticky; top: 40px; align-self: start; }
.service-faq details { border-top: 1px solid var(--rule); }
.service-faq details:last-child { border-bottom: 1px solid var(--rule); }
.service-faq summary { display: flex; align-items: center; gap: 35px; min-height: 88px; list-style: none; cursor: pointer; }
.service-faq summary::-webkit-details-marker { display: none; }
.service-faq summary h3 { flex: 1; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.service-faq summary:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.faq-content { padding: 0 55px 30px 0; }
.faq-content p { max-width: 64ch; color: var(--muted); }
.services-hub .contact-section { grid-template-columns: minmax(0, .38fr) minmax(0, .62fr); gap: 9%; padding-block: 100px; border-top: 1px solid var(--rule); }

.motion-paused .sv-glyph rect, .motion-paused .sv-screen .dp-screen, .motion-paused .sv-chips button::after { animation: none !important; }
.motion-paused .sv-stage .sp-window { transition: none; }

@media (max-width: 900px) {
  .sv-stage.dp-card { padding-inline: 22px; }
  .sv-body { padding-inline: 26px; }
}
@media (max-width: 760px) {
  .sv-overview { padding-block: 55px 64px; }
  .sv-overview-head, .sv-start, .sv-faq { grid-template-columns: 1fr; gap: 22px; }
  .sv-overview-head p { font-size: 15px; }
  .sv-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 34px; }
  .sv-stage.dp-card { padding: 28px 16px 0; }
  .sv-caption { padding-bottom: 22px; }
  .sv-body { padding: 22px 22px 26px; }
  .sv-line { font-size: 18px; }
  .sv-steps .sp-timeline li small { font-size: 14px; }
  .sv-start, .sv-faq { gap: 30px; padding-block: 64px; }
  .sv-start-intro p { font-size: 15px; }
  .sv-start-options a { grid-template-columns: 20px minmax(0, 1fr) 17px; gap: 4px 18px; padding-block: 19px; }
  .sv-start-options .sv-glyph { grid-row: 1 / 3; width: 20px; height: 20px; }
  .sv-start-options a > span:nth-child(2) { grid-column: 2; font-size: 13px; }
  .sv-start-options strong { grid-row: 2; grid-column: 2; font-size: 20px; }
  .sv-start-options .arrow { grid-row: 1 / 3; grid-column: 3; }
  .sv-faq h2 { position: static; }
  .service-faq summary { min-height: 80px; gap: 25px; }
  .service-faq summary h3 { font-size: 20px; }
  .faq-content { padding-right: 20px; font-size: 15px; }
  .services-hub .contact-section { grid-template-columns: 1fr; gap: 40px; padding-block: 70px; }
}
