/* Feature explanations and swipe galleries on landing pages only. */
.feature-explainer {
  padding-bottom: 0;
}
.feature-heading {
  max-width: 790px;
}
.feature-heading .section-heading {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.feature-heading .section-intro {
  max-width: 690px;
  margin-top: 18px;
}
.feature-nav {
  display: grid;
  grid-template-columns: repeat(var(--feature-count), minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 64px;
}
.feature-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  background: #fff;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
  min-width: 0;
}
.feature-nav a:hover {
  background: var(--pale);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.feature-nav .feature-nav-number {
  color: var(--blue);
  font:
    600 12px Consolas,
    monospace;
}
.feature-nav .feature-nav-label {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.6;
  font-weight: 750;
  letter-spacing: 0.035em;
  flex: 1;
}
.feature-nav svg {
  flex: 0 0 14px;
  color: var(--blue);
}
.feature-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(36px, 6vw, 90px);
  align-items: center;
  padding: 44px 0 76px;
  scroll-margin-top: 16px;
}
.feature-story + .feature-story {
  border-top: 1px solid var(--line);
  padding-top: 76px;
}
.feature-story:nth-child(even) .story-visual {
  order: 2;
}
.story-visual {
  min-width: 0;
  position: relative;
  margin: 0;
}
.story-stage {
  position: relative;
  min-height: 570px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 30% 25%, #fff 0%, transparent 64%), var(--pale);
  padding: 48px 30px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.story-stage::before {
  content: "";
  width: 310px;
  height: 310px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: absolute;
  left: -140px;
  bottom: -80px;
  pointer-events: none;
}
.story-stage::after {
  content: "";
  width: 200px;
  height: 200px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: absolute;
  right: -115px;
  top: -110px;
  pointer-events: none;
}
.story-screen-label {
  position: absolute;
  left: 20px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  background: #ffffffc9;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 650;
}
.story-screen-label::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
}
.story-visual .shot-link {
  aspect-ratio: auto;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #fff;
  border-radius: 20px;
  box-shadow: 0 18px 42px #1e375826;
  background: #fff;
  z-index: 1;
}
.story-visual .shot-link img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 490px;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 18px;
}
.story-visual figcaption {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  padding: 15px 6px 0;
}
.story-visual figcaption > span:first-child {
  flex: 0 0 auto;
  color: var(--blue);
  font:
    600 11px Consolas,
    monospace;
  padding-top: 3px;
}
.story-content {
  min-width: 0;
}
.story-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 750;
}
.story-kicker > span:first-child {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--pale);
  font:
    600 12px Consolas,
    monospace;
  flex-shrink: 0;
}
.story-content h3 {
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--ink);
}
.story-description {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 25px;
}
.story-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 17px;
}
.story-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.story-point-icon {
  width: 23px;
  height: 23px;
  background: var(--pale);
  color: var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 1px;
}
.story-points strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 750;
  color: var(--ink);
}
.story-points p {
  font-size: 13px;
  line-height: 1.75;
  margin: 4px 0 0;
  color: var(--muted);
}
.story-example {
  display: flex;
  gap: 12px;
  padding: 17px 19px;
  margin: 25px 0 0;
  border-left: 3px solid var(--blue);
  background: var(--pale);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
}
.story-example svg {
  color: var(--blue);
  flex: 0 0 17px;
  margin-top: 3px;
}
.story-example p {
  margin: 0;
  font-size: 12px;
  line-height: 1.85;
  color: var(--ink);
}
.story-content .text-link {
  font-size: 13px;
  margin-top: 20px;
}
.story-visual.is-landscape .story-stage {
  min-height: 425px;
  padding: 65px 24px 50px;
}
.story-visual.is-landscape .shot-link {
  border-radius: 10px;
}
.story-visual.is-landscape .shot-link img {
  border-radius: 8px;
  max-height: none;
  width: 100%;
}
.feature-workflow {
  margin-block: 22px 78px;
}
.workflow-panel {
  position: relative;
  padding: 44px 46px 42px;
  border-radius: 28px;
  background: #102747;
  color: #fff;
  overflow: hidden;
}
.workflow-panel .eyebrow {
  color: #b1d9ff;
  margin-bottom: 12px;
}
.workflow-panel h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
  list-style: none;
  margin: 35px 0 0;
  padding: 0;
}
.workflow-steps li {
  border-top: 1px solid #ffffff35;
  padding-top: 23px;
  min-width: 0;
}
.workflow-step-number {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: #ffffff12;
  border: 1px solid #ffffff35;
  border-radius: 9px;
  color: #b1d9ff;
  font:
    600 12px Consolas,
    monospace;
  margin-bottom: 15px;
}
.workflow-steps h3 {
  color: #fff;
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 8px;
}
.workflow-steps p {
  color: #c4d3e7;
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}
.workflow-action {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
}
.workflow-action .button {
  font-size: 13px;
  padding: 12px 19px;
  min-height: 46px;
}
.workflow-windows {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}
.workflow-windows:hover {
  color: #b1d9ff;
}
.feature-workflow + .gallery-section {
  padding-top: 65px;
}
.feature-nav a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
@media (max-width: 1050px) {
  .feature-nav {
    gap: 9px;
  }
  .feature-nav a {
    padding: 15px 12px;
    gap: 9px;
  }
  .feature-nav .feature-nav-label {
    font-size: 10px;
  }
  .feature-story {
    column-gap: 35px;
  }
  .story-stage {
    min-height: 530px;
    padding-inline: 22px;
  }
  .story-visual .shot-link img {
    max-height: 460px;
  }
}
@media (max-width: 800px) {
  .feature-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 26px;
  }
  .feature-nav .feature-nav-label {
    font-size: 11px;
  }
  .feature-story {
    grid-template-columns: 1fr;
    padding-block: 36px 48px;
    gap: 30px;
  }
  .feature-story + .feature-story {
    padding-top: 48px;
  }
  .feature-story .story-content {
    order: 0;
  }
  .feature-story .story-visual,
  .feature-story:nth-child(even) .story-visual {
    order: 1;
  }
  .story-content {
    max-width: 620px;
  }
  .story-stage {
    min-height: 0;
    padding: 50px 28px 28px;
  }
  .story-visual .shot-link img {
    max-height: 470px;
  }
  .story-content h3 {
    max-width: 600px;
    font-size: 33px;
  }
  .story-description {
    font-size: 15px;
  }
  .story-visual.is-landscape .story-stage {
    min-height: 0;
    padding: 60px 24px 30px;
  }
  .workflow-panel {
    padding: 34px 30px;
  }
  .workflow-steps {
    gap: 25px;
  }
  .workflow-steps h3 {
    font-size: 15px;
  }
  .workflow-steps p {
    font-size: 12px;
  }
  .workflow-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .feature-heading .section-heading {
    font-size: 31px;
  }
  .feature-heading .section-intro {
    font-size: 14px;
    line-height: 1.8;
  }
  .feature-nav {
    margin-top: 25px;
    gap: 8px;
  }
  .feature-nav a {
    padding: 13px 11px;
    gap: 8px;
    border-radius: 12px;
  }
  .feature-nav .feature-nav-label {
    font-size: 9px;
    letter-spacing: 0.015em;
  }
  .feature-nav svg {
    display: none;
  }
  .feature-story {
    padding-top: 27px;
    padding-bottom: 38px;
    gap: 23px;
  }
  .feature-story + .feature-story {
    padding-top: 38px;
  }
  .story-content h3 {
    font-size: 28px;
    margin-bottom: 16px;
  }
  .story-description {
    font-size: 14px;
    margin-bottom: 22px;
    line-height: 1.8;
  }
  .story-kicker {
    font-size: 10px;
    letter-spacing: 0.06em;
    margin-bottom: 13px;
  }
  .story-points {
    gap: 16px;
  }
  .story-points strong {
    font-size: 13px;
  }
  .story-points p {
    font-size: 12px;
  }
  .story-example {
    padding: 14px;
    margin-top: 22px;
    gap: 9px;
  }
  .story-example p {
    font-size: 12px;
  }
  .story-stage {
    border-radius: 22px;
    padding: 48px 22px 24px;
  }
  .story-visual .shot-link img {
    max-height: 420px;
  }
  .story-visual figcaption {
    font-size: 11px;
  }
  .story-visual.is-landscape .story-stage {
    padding: 54px 12px 25px;
  }
  .feature-workflow {
    margin-block: 10px 45px;
  }
  .workflow-panel {
    padding: 30px 24px;
    border-radius: 22px;
  }
  .workflow-panel h2 {
    font-size: 26px;
  }
  .workflow-steps {
    grid-template-columns: 1fr;
    margin-top: 25px;
    gap: 20px;
  }
  .workflow-steps li {
    position: relative;
    padding: 18px 0 0 45px;
  }
  .workflow-step-number {
    position: absolute;
    left: 0;
    top: 20px;
    width: 28px;
    height: 28px;
  }
  .workflow-steps h3 {
    font-size: 15px;
    margin-bottom: 5px;
  }
  .workflow-steps p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .feature-nav a {
    transition: none;
  }
}

/* Native touch scrolling, snap points and tap targets replace the scrollbar. */
.gallery-section .gallery-track {
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  scroll-padding-inline: 3px;
  padding-bottom: 8px;
  cursor: grab;
}
.gallery-section .gallery-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.gallery-track .shot-card {
  scroll-snap-stop: always;
}
.gallery-swipe img,
.gallery-swipe figcaption {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.gallery-section .gallery-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.gallery-dragging .shot-link {
  transform: none;
  cursor: grabbing;
}
.gallery-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 13px;
}
.gallery-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
}
.gallery-dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 9px;
  flex-shrink: 0;
}
.gallery-dot span {
  width: 7px;
  height: 7px;
  border-radius: 9px;
  background: var(--muted);
  opacity: 0.45;
  transition:
    width 0.2s,
    background 0.2s,
    opacity 0.2s;
}
.gallery-dot[aria-current="true"] span {
  width: 21px;
  background: var(--blue);
  opacity: 1;
}
.gallery-dot:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 0;
}
.gallery-position {
  color: var(--muted);
  font:
    600 11px Consolas,
    monospace;
  letter-spacing: 0.08em;
}
.gallery-pagination + .gallery-hint {
  text-align: center;
  margin-top: 10px;
}
@media (max-width: 600px) {
  .gallery-section .gallery-controls {
    display: none;
  }
  .gallery-section .gallery-track {
    gap: 14px;
    padding-inline: 3px;
  }
  .gallery-track .shot-card {
    flex-basis: min(80%, 290px);
    scroll-snap-align: start;
  }
  .gallery-track .shot-link:hover {
    transform: none;
  }
  .gallery-pagination {
    margin-top: 6px;
  }
}
